Fix wrong img variable

This commit is contained in:
Bosco Yung 2021-11-11 16:20:02 +08:00 committed by GitHub
parent 9b816648e0
commit a2f7ce6f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ def detect_face(face_detector, img, align = True):
#-------------------------- #--------------------------
obj = RetinaFace.detect_faces(img_rgb, model = face_detector, threshold = 0.9) obj = RetinaFace.detect_faces(img, model = face_detector, threshold = 0.9)
if type(obj) == dict: if type(obj) == dict:
for key in obj: for key in obj: