Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -86,7 +86,7 @@ def check_id(id):
 | 
			
		||||
    return known
 | 
			
		||||
 | 
			
		||||
def save_img(encoded_data, filename):
 | 
			
		||||
    nparr = np.fromstring(base64.b64decode(encoded_data), np.uint8)
 | 
			
		||||
    nparr = np.fromstring(base64.urlsafe_b64decode(encoded_data), np.uint8)
 | 
			
		||||
    img = cv2.imdecode(nparr, cv2.IMREAD_ANYCOLOR)
 | 
			
		||||
    return cv2.imwrite(filename, img)
 | 
			
		||||
          
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user