types for eyes

This commit is contained in:
Sefik Ilkin Serengil 2024-03-02 20:43:16 +00:00
parent 20070a3f97
commit 29ffce8594

View File

@ -35,9 +35,13 @@ class FastMtCnnClient(Detector):
for current_detection in zip(*detections): for current_detection in zip(*detections):
x, y, w, h = xyxy_to_xywh(current_detection[0]) x, y, w, h = xyxy_to_xywh(current_detection[0])
confidence = current_detection[1] confidence = current_detection[1]
left_eye = current_detection[2][0] left_eye = current_detection[2][0]
right_eye = current_detection[2][1] 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( facial_area = FacialAreaRegion(
x=x, x=x,
y=y, y=y,