Update 'face_recognition/app/app.py'
This commit is contained in:
parent
e43a8c8926
commit
5e54fc4756
@ -39,6 +39,7 @@ def new_user_id():
|
|||||||
def new_face():
|
def new_face():
|
||||||
id = request.args.get('id', None)
|
id = request.args.get('id', None)
|
||||||
img = request.args.get('encoded_string', None)
|
img = request.args.get('encoded_string', None)
|
||||||
|
print(img)
|
||||||
imgdata = base64.b64decode(img)
|
imgdata = base64.b64decode(img)
|
||||||
with open('/tmp/'+str(id), 'wb') as file:
|
with open('/tmp/'+str(id), 'wb') as file:
|
||||||
file.write(imgdata)
|
file.write(imgdata)
|
||||||
|
Loading…
Reference in New Issue
Block a user