mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Update MediaPipe.py
This commit is contained in:
parent
5c242e2c85
commit
c77e201aa6
@ -32,7 +32,7 @@ class MediaPipeClient(Detector):
|
|||||||
) from e
|
) from e
|
||||||
|
|
||||||
mp_face_detection = mp.solutions.face_detection
|
mp_face_detection = mp.solutions.face_detection
|
||||||
face_detection = mp_face_detection.FaceDetection(min_detection_confidence=0.7)
|
face_detection = mp_face_detection.FaceDetection(min_detection_confidence=0.2, model_selection=1)
|
||||||
return face_detection
|
return face_detection
|
||||||
|
|
||||||
def detect_faces(self, img: np.ndarray) -> List[FacialAreaRegion]:
|
def detect_faces(self, img: np.ndarray) -> List[FacialAreaRegion]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user