Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-23 16:57:04 +00:00
parent 1c2138b632
commit 344ba3d978

View File

@ -33,7 +33,7 @@ def new_user_id():
minioClient.fput_object('users', str(id), '/tmp/demo_object.pkl')
return(id)
@app.route('/init_face', methods=["POST"])
@app.route('/init_face')
#call like https://face.sguba.de/init_face?id=123&encoded_string=abc
def new_face():
id = request.args.get('id', None)
@ -48,7 +48,7 @@ def new_face():
minioClient.fput_object('users', str(id), '/tmp/'+str(id)+'.pkl')
return str(id) + str(upload_id)
@app.route('/check_face', methods=["POST"])
@app.route('/check_face')
#call like https://face.sguba.de/check_face?id=123&encoded_string=abc
def check_face():
id = request.args.get('id', None)