mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
in case of eyes null
This commit is contained in:
parent
5f98932ac2
commit
6d3b7aa4c4
@ -156,7 +156,9 @@ def detect_faces(
|
|||||||
x = x - width_border
|
x = x - width_border
|
||||||
y = y - height_border
|
y = y - height_border
|
||||||
# w and h will not change
|
# w and h will not change
|
||||||
|
if left_eye is not None:
|
||||||
left_eye = (left_eye[0] - width_border, left_eye[1] - height_border)
|
left_eye = (left_eye[0] - width_border, left_eye[1] - height_border)
|
||||||
|
if right_eye is not None:
|
||||||
right_eye = (right_eye[0] - width_border, right_eye[1] - height_border)
|
right_eye = (right_eye[0] - width_border, right_eye[1] - height_border)
|
||||||
|
|
||||||
result = DetectedFace(
|
result = DetectedFace(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user