Spaces:
Runtime error
Runtime error
Shafeek Saleem commited on
Commit ·
defbd84
1
Parent(s): 0cb5452
bug fixed
Browse files- utils/inference.py +2 -0
utils/inference.py
CHANGED
|
@@ -18,6 +18,8 @@ def recognize(image,tolerance):
|
|
| 18 |
for (top,right,bottom,left), face_encoding in zip(face_locations,face_encodings):
|
| 19 |
matches = face_recognition.compare_faces(known_encoding,face_encoding,tolerance=tolerance)
|
| 20 |
distance = face_recognition.face_distance(known_encoding,face_encoding)
|
|
|
|
|
|
|
| 21 |
name = 'Unknown'
|
| 22 |
face_id = 'Unknown'
|
| 23 |
for i in range(len(matches)):
|
|
|
|
| 18 |
for (top,right,bottom,left), face_encoding in zip(face_locations,face_encodings):
|
| 19 |
matches = face_recognition.compare_faces(known_encoding,face_encoding,tolerance=tolerance)
|
| 20 |
distance = face_recognition.face_distance(known_encoding,face_encoding)
|
| 21 |
+
st.write(matches)
|
| 22 |
+
st.write(distance)
|
| 23 |
name = 'Unknown'
|
| 24 |
face_id = 'Unknown'
|
| 25 |
for i in range(len(matches)):
|