mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 20:45:22 +00:00
types for eyes
This commit is contained in:
parent
20070a3f97
commit
29ffce8594
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user