From 5cfd6d1edb196d47451b467f6482cb1778c8e4dc Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 9 Nov 2020 17:02:59 -0600 Subject: [PATCH] don't save thumbnails for false positives --- frigate/object_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 819bc2fe9..9615103dc 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -404,7 +404,7 @@ class TrackedObjectProcessor(threading.Thread): def end(camera, obj: TrackedObject): self.client.publish(f"{self.topic_prefix}/{camera}/events/end", json.dumps(obj.to_dict()), retain=False) - if self.config.cameras[camera].save_clips.enabled: + if self.config.cameras[camera].save_clips.enabled and not obj._false_positive: 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.snapshot_jpg)