Update 'face_recognition/app/app.py'
This commit is contained in:
		@@ -66,6 +66,8 @@ def check_face():
 | 
				
			|||||||
        with open(temporary_pkl_path, 'rb') as file:
 | 
					        with open(temporary_pkl_path, 'rb') as file:
 | 
				
			||||||
            face_encoding = pickle.load(file)
 | 
					            face_encoding = pickle.load(file)
 | 
				
			||||||
        face_encoding_response['result'] = str(face_recognition.compare_faces([face_encoding], face_encoding_response['encoding'])[0])
 | 
					        face_encoding_response['result'] = str(face_recognition.compare_faces([face_encoding], face_encoding_response['encoding'])[0])
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        face_encoding_response['result'] = str(False)
 | 
				
			||||||
    return jsonify({'result':face_encoding_response['result'],'success':face_encoding_response['success']})
 | 
					    return jsonify({'result':face_encoding_response['result'],'success':face_encoding_response['success']})
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user