mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 12:35:22 +00:00
avoid int64 not serializable error
This commit is contained in:
parent
ce1fa57d35
commit
e442ccd2f1
@ -57,9 +57,9 @@ class OpenCvClient(Detector):
|
|||||||
# eyes found in the detected face instead image itself
|
# eyes found in the detected face instead image itself
|
||||||
# detected face's coordinates should be added
|
# detected face's coordinates should be added
|
||||||
if left_eye is not None:
|
if left_eye is not None:
|
||||||
left_eye = (x + left_eye[0], y + left_eye[1])
|
left_eye = (int(x + left_eye[0]), int(y + left_eye[1]))
|
||||||
if right_eye is not None:
|
if right_eye is not None:
|
||||||
right_eye = (x + right_eye[0], y + right_eye[1])
|
right_eye = (int(x + right_eye[0]), int(y + right_eye[1]))
|
||||||
|
|
||||||
facial_area = FacialAreaRegion(
|
facial_area = FacialAreaRegion(
|
||||||
x=x,
|
x=x,
|
||||||
|
@ -135,9 +135,9 @@ class SsdClient(Detector):
|
|||||||
# eyes found in the detected face instead image itself
|
# eyes found in the detected face instead image itself
|
||||||
# detected face's coordinates should be added
|
# detected face's coordinates should be added
|
||||||
if left_eye is not None:
|
if left_eye is not None:
|
||||||
left_eye = (x + left_eye[0], y + left_eye[1])
|
left_eye = (int(x + left_eye[0]), int(y + left_eye[1]))
|
||||||
if right_eye is not None:
|
if right_eye is not None:
|
||||||
right_eye = (x + right_eye[0], y + right_eye[1])
|
right_eye = (int(x + right_eye[0]), int(y + right_eye[1]))
|
||||||
|
|
||||||
facial_area = FacialAreaRegion(
|
facial_area = FacialAreaRegion(
|
||||||
x=x,
|
x=x,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user