We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a1679 commit 99641c5Copy full SHA for 99641c5
face_recognition/api.py
@@ -61,7 +61,7 @@ def _face_distance(faces, face_to_compare):
61
:param face_to_compare: A face encoding to compare against
62
:return: A list with the distance for each face in the same order as the 'faces' array
63
"""
64
- return np.array([np.linalg.norm(face - face_to_compare) for face in faces])
+ return np.linalg.norm(faces - face_to_compare, axis=1)
65
66
67
def load_image_file(filename, mode='RGB'):
0 commit comments