mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
Fix bounding box for dlib
Change right --> top
This commit is contained in:
parent
630e8e72f5
commit
1b2ac91dfc
@ -285,7 +285,7 @@ def detect_face(img, detector_backend = 'opencv', grayscale = False, enforce_det
|
|||||||
|
|
||||||
detected_face = img[top:bottom, left:right]
|
detected_face = img[top:bottom, left:right]
|
||||||
|
|
||||||
return detected_face, [left, right, right - left, bottom - top]
|
return detected_face, [left, top, right - left, bottom - top]
|
||||||
|
|
||||||
else: #if no face detected
|
else: #if no face detected
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user