Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-23 17:37:41 +00:00
parent e43a8c8926
commit 5e54fc4756

View File

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