Skip to content

Commit 29ffce8

Browse files
committed
types for eyes
1 parent 20070a3 commit 29ffce8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deepface/detectors/FastMtCnn.py

+4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ def detect_faces(self, img: np.ndarray) -> List[FacialAreaRegion]:
3535
for current_detection in zip(*detections):
3636
x, y, w, h = xyxy_to_xywh(current_detection[0])
3737
confidence = current_detection[1]
38+
3839
left_eye = current_detection[2][0]
3940
right_eye = current_detection[2][1]
4041

42+
left_eye = tuple(int(i) for i in left_eye)
43+
right_eye = tuple(int(i) for i in right_eye)
44+
4145
facial_area = FacialAreaRegion(
4246
x=x,
4347
y=y,

0 commit comments

Comments
 (0)