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