Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-25 16:13:01 +00:00
parent 2ab696d69d
commit d9ec192487

View File

@ -51,6 +51,7 @@ def new_face():
with open(temporary_pkl_path, 'wb') as file: with open(temporary_pkl_path, 'wb') as file:
pickle.dump(face_encoding, file) pickle.dump(face_encoding, file)
minioClient.fput_object('users', str(id), temporary_pkl_path) minioClient.fput_object('users', str(id), temporary_pkl_path)
#return boolean if setup was succesful
return jsonify({'id':id}) return jsonify({'id':id})
@app.route('/check_face') @app.route('/check_face')