face coordinate values casted to int

This commit is contained in:
Sefik Ilkin Serengil 2024-04-16 20:01:51 +01:00
parent 5bb411f3aa
commit 5603d5f44a

View File

@ -82,10 +82,10 @@ class CenterFaceClient(Detector):
# mouth_left = (int(landmark[8]), int(landmark [9])) # mouth_left = (int(landmark[8]), int(landmark [9]))
facial_area = FacialAreaRegion( facial_area = FacialAreaRegion(
x=x, x=int(x),
y=y, y=int(y),
w=w, w=int(w),
h=h, h=int(h),
left_eye=left_eye, left_eye=left_eye,
right_eye=right_eye, right_eye=right_eye,
confidence=min(max(0, float(confidence)), 1.0), confidence=min(max(0, float(confidence)), 1.0),