Merge pull request #211 from olive380/patch-1

Fix bounding box for dlib
This commit is contained in:
Sefik Ilkin Serengil 2021-03-29 17:07:21 +03:00 committed by GitHub
commit a5daa2afe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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