Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-25 16:03:49 +00:00
parent 8593da98a3
commit 7597119379

View File

@ -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':str(face_recognition.compare_faces([face_encoding], face2_encoding))}) return jsonify({'result':str(face_recognition.compare_faces([face_encoding], face2_encoding)[0])})
def check_id(id): def check_id(id):