Explorar o código

only save a clip if its not a false positive

Blake Blackshear %!s(int64=4) %!d(string=hai) anos
pai
achega
1f81cba706
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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']]