Shafeek Saleem commited on
Commit
cc796ce
1 Parent(s): 68c2ecc
.idea/sonarlint/issuestore/8/7/87caad19f17efd4c3e8264659f523744ffa94ed8 ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+
2
+ G python:S1066"/Merge this if statement with the enclosing one.(����
dataset/database.pkl → .idea/sonarlint/issuestore/c/6/c615f8a48e6d6fc5c9785bce3642788570175d6c RENAMED
File without changes
.idea/sonarlint/issuestore/index.pb CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4b4951c46d564e515a40d50a2cdf6b46376c146df6a56092e672ecc1f965a7f2
3
- size 123
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87862bf18d4db63602fc54955aabfc69f91a027a381476ed3f14861ad89db28c
3
+ size 254
utils/inference.py CHANGED
@@ -16,6 +16,10 @@ def recognize(image,tolerance):
16
  face_locations = face_recognition.face_locations(image)
17
  face_encodings = face_recognition.face_encodings(image,face_locations)
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'
 
16
  face_locations = face_recognition.face_locations(image)
17
  face_encodings = face_recognition.face_encodings(image,face_locations)
18
  for (top,right,bottom,left), face_encoding in zip(face_locations,face_encodings):
19
+ st.write("face_encoding")
20
+ st.write(face_encoding.shape)
21
+ st.write("known_encoding")
22
+ st.write(known_encoding.shape)
23
  matches = face_recognition.compare_faces(known_encoding,face_encoding,tolerance=tolerance)
24
  # distance = face_recognition.face_distance(known_encoding,face_encoding)
25
  name = 'Unknown'