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