Fix label check (#14610)

* Create config for parsing object

* Use in maintainer
This commit is contained in:
Nicolas Mowen
2025-02-08 12:47:01 -06:00
committed by Blake Blackshear
parent c4ce7f9800
commit 711575736d
3 changed files with 22 additions and 10 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ class EmbeddingMaintainer(threading.Thread):
# set face recognition conditions
self.face_recognition_enabled = self.config.face_recognition.enabled
self.requires_face_detection = "face" not in self.config.model.all_attributes
self.requires_face_detection = "face" not in self.config.objects.all_objects
self.detected_faces: dict[str, float] = {}
# create communication for updating event descriptions
@@ -78,7 +78,7 @@ class EmbeddingMaintainer(threading.Thread):
# set license plate recognition conditions
self.lpr_config = self.config.lpr
self.requires_license_plate_detection = (
"license_plate" not in self.config.model.all_attributes
"license_plate" not in self.config.objects.all_objects
)
self.detected_license_plates: dict[str, dict[str, any]] = {}