From 29ffce859482ccb1a445a3d3f0f4654e33a1336e Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sat, 2 Mar 2024 20:43:16 +0000 Subject: [PATCH] types for eyes --- deepface/detectors/FastMtCnn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deepface/detectors/FastMtCnn.py b/deepface/detectors/FastMtCnn.py index 1d6a416..88340c0 100644 --- a/deepface/detectors/FastMtCnn.py +++ b/deepface/detectors/FastMtCnn.py @@ -35,9 +35,13 @@ class FastMtCnnClient(Detector): for current_detection in zip(*detections): x, y, w, h = xyxy_to_xywh(current_detection[0]) confidence = current_detection[1] + left_eye = current_detection[2][0] right_eye = current_detection[2][1] + left_eye = tuple(int(i) for i in left_eye) + right_eye = tuple(int(i) for i in right_eye) + facial_area = FacialAreaRegion( x=x, y=y,