Update DeepFace.py

This commit is contained in:
Matthew Liechty 2023-03-09 11:02:22 -05:00 committed by GitHub
parent 05f309f357
commit b23749509f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -669,7 +669,7 @@ def represent(
img_objs = [(img, img_region, 0)]
# ---------------------------------
for img, region, _ in img_objs:
for img, region, confidence in img_objs:
# custom normalization
img = functions.normalize_input(img=img, normalization=normalization)
@ -684,6 +684,7 @@ def represent(
resp_obj = {}
resp_obj["embedding"] = embedding
resp_obj["facial_area"] = region
resp_obj["face_confidence"] = confidence
resp_objs.append(resp_obj)
return resp_objs