From c4a49fff98e0a46f224a43f501d8879771c5245f Mon Sep 17 00:00:00 2001 From: Tyas Date: Thu, 3 Oct 2024 06:22:50 +0700 Subject: [PATCH] Update Mediapipe min_detection_confidence --- deepface/models/face_detection/MediaPipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepface/models/face_detection/MediaPipe.py b/deepface/models/face_detection/MediaPipe.py index 6990dd8..4358516 100644 --- a/deepface/models/face_detection/MediaPipe.py +++ b/deepface/models/face_detection/MediaPipe.py @@ -32,7 +32,7 @@ class MediaPipeClient(Detector): ) from e mp_face_detection = mp.solutions.face_detection - face_detection = mp_face_detection.FaceDetection(min_detection_confidence=0.2, model_selection=1) + face_detection = mp_face_detection.FaceDetection(min_detection_confidence=0.5, model_selection=1) return face_detection def detect_faces(self, img: np.ndarray) -> List[FacialAreaRegion]: