Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -57,6 +57,7 @@ def check_face():
 | 
				
			|||||||
    with open('/tmp/'+str(id), 'rb') as file:
 | 
					    with open('/tmp/'+str(id), 'rb') as file:
 | 
				
			||||||
        face2 = pickle.load(file)
 | 
					        face2 = pickle.load(file)
 | 
				
			||||||
    face2_encoding = face_recognition.face_encodings(face2)[0]
 | 
					    face2_encoding = face_recognition.face_encodings(face2)[0]
 | 
				
			||||||
 | 
					    return face_recognition.compare_faces([face_encoding], face2_encoding)
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
def check_id(id):
 | 
					def check_id(id):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user