Update Ssd.py

ssd's confidence score should be float not numpy
This commit is contained in:
Sefik Ilkin Serengil 2024-08-30 07:58:51 +01:00 committed by GitHub
parent 14158d3656
commit 5e261e709c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]