Skip to content

Commit

Permalink
Merge pull request serengil#211 from olive380/patch-1
Browse files Browse the repository at this point in the history
Fix bounding box for dlib
  • Loading branch information
serengil authored Mar 29, 2021
2 parents 630e8e7 + 1b2ac91 commit a5daa2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepface/commons/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def detect_face(img, detector_backend = 'opencv', grayscale = False, enforce_det

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

Expand Down

0 comments on commit a5daa2a

Please sign in to comment.