Improvements to face recognition (#15854)

* Do not add margin to face images

* remove margin

* Correctly clear
This commit is contained in:
Nicolas Mowen
2025-02-08 12:47:01 -06:00
committed by Blake Blackshear
parent a6ae208fe7
commit 4f85b18b08
2 changed files with 5 additions and 16 deletions
+1 -2
View File
@@ -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: