NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix incorrectly running lpr (#18390)
Nicolas Mowen2385c403ee44
diff --git a/frigate/embeddings/maintainer.py b/frigate/embeddings/maintainer.pyindex 6cce9ba980..436d0e7dfb 100644--- a/frigate/embeddings/maintainer.py+++ b/frigate/embeddings/maintainer.py@@ -480,11 +480,12 @@ class EmbeddingMaintainer(threading.Thread):returncamera_config = self.config.cameras[camera]+ dedicated_lpr_enabled = (+ camera_config.type == CameraTypeEnum.lpr+ and "license_plate" not in camera_config.objects.track+ )- if (- camera_config.type != CameraTypeEnum.lpr- or "license_plate" in camera_config.objects.track- ) and len(self.config.classification.custom) == 0:+ if not dedicated_lpr_enabled and len(self.config.classification.custom) == 0:# no active features that use this datareturn@@ -502,7 +503,9 @@ class EmbeddingMaintainer(threading.Thread):returnfor processor in self.realtime_processors:- if isinstance(processor, LicensePlateRealTimeProcessor):+ if dedicated_lpr_enabled and isinstance(+ processor, LicensePlateRealTimeProcessor+ ):processor.process_frame(camera, yuv_frame, True)if isinstance(processor, CustomStateClassificationProcessor):