mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
dont trigger zones for false positives
This commit is contained in:
parent
1f81cba706
commit
6a8d8bf53d
@ -291,7 +291,7 @@ def main():
|
|||||||
event_processor = EventProcessor(CONFIG['cameras'], camera_processes, '/cache', '/clips', event_queue, stop_event)
|
event_processor = EventProcessor(CONFIG['cameras'], camera_processes, '/cache', '/clips', event_queue, stop_event)
|
||||||
event_processor.start()
|
event_processor.start()
|
||||||
|
|
||||||
object_processor = TrackedObjectProcessor(CONFIG['cameras'], CONFIG.get('zones', {}), client, MQTT_TOPIC_PREFIX, tracked_objects_queue, event_queue,stop_event)
|
object_processor = TrackedObjectProcessor(CONFIG['cameras'], CONFIG.get('zones', {}), client, MQTT_TOPIC_PREFIX, tracked_objects_queue, event_queue, stop_event)
|
||||||
object_processor.start()
|
object_processor.start()
|
||||||
|
|
||||||
camera_watchdog = CameraWatchdog(camera_processes, CONFIG['cameras'], tflite_process, tracked_objects_queue, plasma_process, stop_event)
|
camera_watchdog = CameraWatchdog(camera_processes, CONFIG['cameras'], tflite_process, tracked_objects_queue, plasma_process, stop_event)
|
||||||
|
@ -331,7 +331,7 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
# update zone status for each label
|
# update zone status for each label
|
||||||
for zone in camera_state.config['zones'].keys():
|
for zone in camera_state.config['zones'].keys():
|
||||||
# get labels for current camera and all labels in current zone
|
# get labels for current camera and all labels in current zone
|
||||||
labels_for_camera = set([obj['label'] for obj in camera_state.tracked_objects.values() if zone in obj['zones']])
|
labels_for_camera = set([obj['label'] for obj in camera_state.tracked_objects.values() if zone in obj['zones'] and not obj['false_positive']])
|
||||||
labels_to_check = labels_for_camera | set(self.zone_data[zone].keys())
|
labels_to_check = labels_for_camera | set(self.zone_data[zone].keys())
|
||||||
# for each label in zone
|
# for each label in zone
|
||||||
for label in labels_to_check:
|
for label in labels_to_check:
|
||||||
|
Loading…
Reference in New Issue
Block a user