mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Improvements to face recognition (#15854)
* Do not add margin to face images * remove margin * Correctly clear
This commit is contained in:
committed by
Blake Blackshear
parent
a6ae208fe7
commit
4f85b18b08
@@ -309,8 +309,7 @@ class FaceClassificationModel:
|
||||
)
|
||||
|
||||
def clear_classifier(self) -> None:
|
||||
self.classifier = None
|
||||
self.labeler = None
|
||||
self.face_recognizer = None
|
||||
self.label_map = {}
|
||||
|
||||
def detect_faces(self, input: np.ndarray) -> tuple[int, cv2.typing.MatLike] | None:
|
||||
|
||||
Reference in New Issue
Block a user