From 7a4d90a47aae94b0ccafbbcc72071e52573731e0 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Wed, 25 Nov 2020 17:24:07 -0600 Subject: [PATCH] only publish end events for true positives --- frigate/object_processing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index a1edd7e24..383e2ca69 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -419,7 +419,8 @@ class TrackedObjectProcessor(threading.Thread): thumbnail_file_name = f"{camera}-{obj.obj_data['id']}.jpg" with open(os.path.join(self.config.save_clips.clips_dir, thumbnail_file_name), 'wb') as f: f.write(obj.get_jpg_bytes()) - self.event_queue.put(('end', camera, obj.to_dict(include_thumbnail=True))) + if not obj.false_positive: + self.event_queue.put(('end', camera, obj.to_dict(include_thumbnail=True))) def snapshot(camera, obj: TrackedObject, current_frame_time): self.client.publish(f"{self.topic_prefix}/{camera}/{obj.obj_data['label']}/snapshot", obj.get_jpg_bytes(), retain=True)