Update 'face_recognition/app/app.py'
This commit is contained in:
parent
344ba3d978
commit
ea282c0f04
@ -45,6 +45,7 @@ def new_face():
|
||||
face_encoding = face_recognition.face_encodings(face)[0]
|
||||
with open('/tmp/'+str(id)+'.pkl', 'wb') as file:
|
||||
pickle.dump(face_encoding, file)
|
||||
minioClient.fput_object('users', str(id)+'.jpg', '/tmp/'+str(id))
|
||||
minioClient.fput_object('users', str(id), '/tmp/'+str(id)+'.pkl')
|
||||
return str(id) + str(upload_id)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user