Update 'face_recognition/app/app.py'
This commit is contained in:
parent
5e54fc4756
commit
514240fd60
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user