Browse Source

only save a clip if its not a false positive

Blake Blackshear 4 năm trước cách đây
mục cha
commit
1f81cba706
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frigate/events.py

+ 1 - 1
frigate/events.py

@@ -151,7 +151,7 @@ class EventProcessor(threading.Thread):
                 self.events_in_process[event_data['id']] = event_data
 
             if event_type == 'end':
-                if self.config[camera].get('save_clips', {}).get('enabled', False) and len(self.cached_clips) > 0:
+                if self.config[camera].get('save_clips', {}).get('enabled', False) and len(self.cached_clips) > 0 and not event_data['false_positive']:
                     self.create_clip(camera, event_data, self.config[camera].get('save_clips', {}).get('pre_capture', 30))
                 del self.events_in_process[event_data['id']]