mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +03:00
fix order
This commit is contained in:
parent
3b99fb78c7
commit
f8b1a27e1f
@ -67,6 +67,12 @@ class EmbeddingMaintainer(threading.Thread):
|
|||||||
self.requires_face_detection = "face" not in self.config.model.all_attributes
|
self.requires_face_detection = "face" not in self.config.model.all_attributes
|
||||||
self.detected_faces: dict[str, float] = {}
|
self.detected_faces: dict[str, float] = {}
|
||||||
|
|
||||||
|
# create communication for updating event descriptions
|
||||||
|
self.requestor = InterProcessRequestor()
|
||||||
|
self.stop_event = stop_event
|
||||||
|
self.tracked_events: dict[str, list[any]] = {}
|
||||||
|
self.genai_client = get_genai_client(config.genai)
|
||||||
|
|
||||||
# set license plate recognition conditions
|
# set license plate recognition conditions
|
||||||
self.lpr_config = self.config.lpr
|
self.lpr_config = self.config.lpr
|
||||||
self.requires_license_plate_detection = (
|
self.requires_license_plate_detection = (
|
||||||
@ -77,12 +83,6 @@ class EmbeddingMaintainer(threading.Thread):
|
|||||||
self.lpr_config, self.requestor
|
self.lpr_config, self.requestor
|
||||||
)
|
)
|
||||||
|
|
||||||
# create communication for updating event descriptions
|
|
||||||
self.requestor = InterProcessRequestor()
|
|
||||||
self.stop_event = stop_event
|
|
||||||
self.tracked_events: dict[str, list[any]] = {}
|
|
||||||
self.genai_client = get_genai_client(config.genai)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def face_detector(self) -> cv2.FaceDetectorYN:
|
def face_detector(self) -> cv2.FaceDetectorYN:
|
||||||
# Lazily create the classifier.
|
# Lazily create the classifier.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user