From 9b71d0980ceb861ec3ad1afa6aaa1417e3a7a9be Mon Sep 17 00:00:00 2001 From: 201910812 <57256215+yoonho0922@users.noreply.github.com> Date: Tue, 21 Jul 2020 16:25:49 +0900 Subject: [PATCH] debug visualize_facial_landmarks IndexError: list index out of range debug by adding color object --- imutils/face_utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imutils/face_utils/helpers.py b/imutils/face_utils/helpers.py index 4889019..2f5e5b0 100644 --- a/imutils/face_utils/helpers.py +++ b/imutils/face_utils/helpers.py @@ -64,7 +64,7 @@ def visualize_facial_landmarks(image, shape, colors=None, alpha=0.75): if colors is None: colors = [(19, 199, 109), (79, 76, 240), (230, 159, 23), (168, 100, 168), (158, 163, 32), - (163, 38, 32), (180, 42, 220)] + (163, 38, 32), (180, 42, 220), (153, 255, 0)] # loop over the facial landmark regions individually for (i, name) in enumerate(FACIAL_LANDMARKS_IDXS.keys()):