NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Handle case where user sets detections as empty list (#11646)
Nicolas Mowen1c2e2a7b38b0
diff --git a/frigate/review/maintainer.py b/frigate/review/maintainer.pyindex 2d95c082ef..32d4628a7f 100644--- a/frigate/review/maintainer.py+++ b/frigate/review/maintainer.py@@ -356,7 +356,7 @@ class ReviewSegmentMaintainer(threading.Thread):if (not severityand (- not camera_config.review.detections.labels+ camera_config.review.detections.labels is Noneor object["label"] in (camera_config.review.detections.labels))and (@@ -467,7 +467,7 @@ class ReviewSegmentMaintainer(threading.Thread):current_segment.audio.add(audio)current_segment.severity = SeverityEnum.alertelif (- not camera_config.review.detections.labels+ camera_config.review.detections.labels is Noneor audio in camera_config.review.detections.labels):current_segment.audio.add(audio)@@ -510,7 +510,7 @@ class ReviewSegmentMaintainer(threading.Thread):detections.add(audio)severity = SeverityEnum.alertelif (- not camera_config.review.detections.labels+ camera_config.review.detections.labels is Noneor audio in camera_config.review.detections.labels):detections.add(audio)@@ -571,7 +571,7 @@ def get_active_objects(and (o["label"] in camera_config.review.alerts.labelsor (- not camera_config.review.detections.labels+ camera_config.review.detections.labels is Noneor o["label"] in camera_config.review.detections.labels)) # object must be in the alerts or detections label list