From 18b1d1a5875d2cc56e3d1005016b037900b06625 Mon Sep 17 00:00:00 2001 From: stepoio <2014265+stepoio@users.noreply.github.com> Date: Thu, 29 Aug 2019 15:14:20 +0200 Subject: [PATCH] Add 8th color to visualize_facial_landmarks helper provides 8 landmark features, provide 8 default colors. --- 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..f3ea14d 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), (255, 0,255 )] # loop over the facial landmark regions individually for (i, name) in enumerate(FACIAL_LANDMARKS_IDXS.keys()):