From a7728e8acd800691f59871f06ff1c997a071f76c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 16 Sep 2024 16:46:13 -0600 Subject: [PATCH] Fix detections logic --- frigate/object_processing.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 50d962917..e73186f46 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -1138,12 +1138,14 @@ class TrackedObjectProcessor(threading.Thread): ) ) or ( - not review_config.detections.labels - or obj.obj_data["label"] in review_config.detections.labels - ) - and ( - not review_config.detections.required_zones - or set(obj.entered_zones) & set(review_config.alerts.required_zones) + ( + not review_config.detections.labels + or obj.obj_data["label"] in review_config.detections.labels + ) + and ( + not review_config.detections.required_zones + or set(obj.entered_zones) & set(review_config.alerts.required_zones) + ) ) ): logger.debug(