Update 'face_recognition/app/app.py'
This commit is contained in:
parent
8593da98a3
commit
7597119379
@ -65,7 +65,7 @@ def check_face():
|
||||
minioClient.fget_object('users', str(id), temporary_pkl_path)
|
||||
with open(temporary_pkl_path, 'rb') as 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):
|
||||
|
Loading…
Reference in New Issue
Block a user