Permalink
Browse files

Landmarks nose drawing fix

Fixes nose landmarks drawing if `image_landmarks` are passes as a `numpy.array`
  • Loading branch information...
andenixa committed Aug 24, 2018
1 parent f872f07 commit f87ee259b0431a18ee328894ded952f841b9a0ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 facelib/LandmarksProcessor.py
@@ -186,7 +186,7 @@ def draw_landmarks (image, image_landmarks, color):
nose = image_landmarks[slice(*landmarks_68_pt["nose"])]
# open shapes
cv2.polylines(image, tuple(np.array([v]) for v in (right_eyebrow, jaw, left_eyebrow, nose+[nose[-6]])),
cv2.polylines(image, tuple(np.array([v]) for v in ( right_eyebrow, jaw, left_eyebrow, np.concatenate((nose, [nose[-6]])) )),
False, color, lineType=cv2.LINE_AA)
# closed shapes
cv2.polylines(image, tuple(np.array([v]) for v in (right_eye, left_eye, mouth)),

0 comments on commit f87ee25

Please sign in to comment.