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