Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-23 17:39:28 +00:00
parent 5e54fc4756
commit 514240fd60

View File

@ -39,7 +39,7 @@ def new_user_id():
def new_face():
id = request.args.get('id', None)
img = request.args.get('encoded_string', None)
print(img)
print(img, flush=True)
imgdata = base64.b64decode(img)
with open('/tmp/'+str(id), 'wb') as file:
file.write(imgdata)