Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-25 15:38:10 +00:00
parent 67c8854760
commit 8593da98a3

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':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):