Shafeek Saleem commited on
Commit
1941e70
1 Parent(s): 1717673

bug fixed images - path

Browse files
Files changed (2) hide show
  1. requirements.txt +2 -1
  2. utils/inference.py +2 -0
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
- face-recognition
 
2
  opencv-python
 
1
+ #Fork of face_recognition using prebuild dlib library instead
2
+ face_recognition @ git+https://github.com/thetoby9944/face_recognition
3
  opencv-python
utils/inference.py CHANGED
@@ -19,6 +19,8 @@ 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
  name = 'Unknown'
23
  face_id = 'Unknown'
24
  if True in 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
+ st.write(matches)
23
+ st.write(distance)
24
  name = 'Unknown'
25
  face_id = 'Unknown'
26
  if True in matches: