Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -45,6 +45,7 @@ def new_face():
 | 
			
		||||
    temporary_img_path = '/tmp/'+str(id)+'.jpg'
 | 
			
		||||
    temporary_pkl_path = '/tmp/'+str(id)+'.pkl'
 | 
			
		||||
    save_img(img, temporary_img_path)
 | 
			
		||||
    #new method img_path to encoding, inkl error handling
 | 
			
		||||
    face = face_recognition.load_image_file(temporary_img_path)
 | 
			
		||||
    face_encoding = face_recognition.face_encodings(face)[0]
 | 
			
		||||
    with open(temporary_pkl_path, 'wb') as file:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user