Update 'face_recognition/app/app.py'
This commit is contained in:
parent
a4faf438e6
commit
8b2185313e
@ -57,6 +57,7 @@ def check_face():
|
||||
with open('/tmp/'+str(id), 'rb') as file:
|
||||
face2 = pickle.load(file)
|
||||
face2_encoding = face_recognition.face_encodings(face2)[0]
|
||||
return face_recognition.compare_faces([face_encoding], face2_encoding)
|
||||
|
||||
|
||||
def check_id(id):
|
||||
|
Loading…
Reference in New Issue
Block a user