Skip to content

Commit

Permalink
Adding 3 missing points to chin face landmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
ageitgey committed Apr 13, 2017
1 parent 13f3b2f commit a49a905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion face_recognition/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def face_landmarks(face_image, face_locations=None):

# For a definition of each point index, see https://cdn-images-1.medium.com/max/1600/1*AbEg31EgkbXSQehuNJBlWg.png
return [{
"chin": points[0:14],
"chin": points[0:17],
"left_eyebrow": points[17:22],
"right_eyebrow": points[22:27],
"nose_bridge": points[27:31],
Expand Down
3 changes: 2 additions & 1 deletion tests/test_face_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def test_face_landmarks(self):
face_landmarks[0]['chin'],
[(369, 220), (372, 254), (378, 289), (384, 322), (395, 353),
(414, 382), (437, 407), (464, 424), (495, 428), (527, 420),
(552, 399), (576, 372), (594, 344), (604, 314)])
(552, 399), (576, 372), (594, 344), (604, 314), (610, 282),
(613, 250), (615, 219)])

def test_face_encodings(self):
img = api.load_image_file(os.path.join(os.path.dirname(__file__), 'test_images', 'obama.jpg'))
Expand Down

0 comments on commit a49a905

Please sign in to comment.