Update 'face_recognition/app/app.py'
This commit is contained in:
parent
e7198a5e2b
commit
edb85e9976
@ -45,7 +45,7 @@ def new_face():
|
||||
#imgdata = base64.b64decode(img)
|
||||
#with open('/tmp/'+str(id), 'wb') as file:
|
||||
# file.write(bytearray(imgdata))
|
||||
save_img(encoded_string, '/tmp/'+str(id)+'.jpg')
|
||||
save_img(img.encode(), '/tmp/'+str(id)+'.jpg')
|
||||
#to debug send img
|
||||
minioClient.fput_object('users', str(id)+'.jpg', '/tmp/'+str(id)+'.jpg')
|
||||
face = face_recognition.load_image_file('/tmp/'+str(id))
|
||||
|
Loading…
Reference in New Issue
Block a user