Skip to content

Commit

Permalink
face coordinate values casted to int
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Apr 16, 2024
1 parent 5bb411f commit 5603d5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deepface/detectors/CenterFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def detect_faces(self, img: np.ndarray) -> List["FacialAreaRegion"]:
# 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),
Expand Down

0 comments on commit 5603d5f

Please sign in to comment.