mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-08 05:51:40 -07:00
Landmarks nose drawing fix
Fixes nose landmarks drawing if `image_landmarks` are passes as a `numpy.array`
This commit is contained in:
parent
f872f07476
commit
f87ee259b0
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ def draw_landmarks (image, image_landmarks, color):
|
||||||
nose = image_landmarks[slice(*landmarks_68_pt["nose"])]
|
nose = image_landmarks[slice(*landmarks_68_pt["nose"])]
|
||||||
|
|
||||||
# open shapes
|
# 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)
|
False, color, lineType=cv2.LINE_AA)
|
||||||
# closed shapes
|
# closed shapes
|
||||||
cv2.polylines(image, tuple(np.array([v]) for v in (right_eye, left_eye, mouth)),
|
cv2.polylines(image, tuple(np.array([v]) for v in (right_eye, left_eye, mouth)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue