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]))
facial_area = FacialAreaRegion(
x=x,
y=y,
w=w,
h=h,
x=int(x),
y=int(y),
w=int(w),
h=int(h),
left_eye=left_eye,
right_eye=right_eye,
confidence=min(max(0, float(confidence)), 1.0),