Update 'face_recognition/app/app.py'
This commit is contained in:
parent
67c8854760
commit
8593da98a3
@ -65,7 +65,7 @@ def check_face():
|
|||||||
minioClient.fget_object('users', str(id), temporary_pkl_path)
|
minioClient.fget_object('users', str(id), temporary_pkl_path)
|
||||||
with open(temporary_pkl_path, 'rb') as file:
|
with open(temporary_pkl_path, 'rb') as file:
|
||||||
face2_encoding = pickle.load(file)
|
face2_encoding = pickle.load(file)
|
||||||
return jsonify({'result':face_recognition.compare_faces([face_encoding], face2_encoding)})
|
return jsonify({'result':str(face_recognition.compare_faces([face_encoding], face2_encoding))})
|
||||||
|
|
||||||
|
|
||||||
def check_id(id):
|
def check_id(id):
|
||||||
|
Loading…
Reference in New Issue
Block a user