mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Change index to label in ssd detector
This commit is contained in:
parent
2feb703f96
commit
ef0b71a0af
@ -107,7 +107,7 @@ class SsdClient(Detector):
|
||||
|
||||
resp = []
|
||||
for face in faces:
|
||||
confidence = float(face[2])
|
||||
confidence = float(face[ssd_labels.confidence])
|
||||
x, y, w, h = map(int, face[margins])
|
||||
detected_face = img[y : y + h, x : x + w]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user