mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
Unpack detection tuple to get detection dict
This commit is contained in:
parent
8f42137113
commit
7fbf474270
@ -19,7 +19,8 @@ def detect_face(face_detector, img, align=True):
|
||||
obj = RetinaFace.detect_faces(img, model=face_detector, threshold=0.9)
|
||||
|
||||
if isinstance(obj, dict):
|
||||
for identity in obj.items():
|
||||
for item in obj.items():
|
||||
identity = item[1]
|
||||
facial_area = identity["facial_area"]
|
||||
|
||||
y = facial_area[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user