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