Skip to content

NVR with realtime local object detection for IP cameras

Fix detections logic (#13781)

Nicolas Mowen4fc8d33d316c
diff --git a/frigate/object_processing.py b/frigate/object_processing.py
index 50d9629178..e73186f460 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(