mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Update Ssd.py
ssd's confidence score should be float not numpy
This commit is contained in:
parent
14158d3656
commit
5e261e709c
@ -105,7 +105,7 @@ class SsdClient(Detector):
|
||||
|
||||
resp = []
|
||||
for face in faces:
|
||||
confidence = face[2]
|
||||
confidence = float(face[2])
|
||||
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