mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
don't save thumbnails for false positives
This commit is contained in:
parent
494eeb16a5
commit
7015eb66f2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user