From 4fc8d33d316c3ed1781e6026b2e1ff1e0ebcc7b2 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 16 Sep 2024 17:23:10 -0600 Subject: [PATCH] Fix detections logic (#13781) --- 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(