Skip to content

Commit

Permalink
Fix bounding box for dlib
Browse files Browse the repository at this point in the history
Change right --> top
  • Loading branch information
olive380 authored Mar 29, 2021
1 parent 630e8e7 commit 1b2ac91
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 1b2ac91

Please sign in to comment.