From 5d662ec69196029fab352922568f5666e54d67f6 Mon Sep 17 00:00:00 2001 From: Anannya Uberoi Date: Tue, 3 Apr 2018 22:40:22 +0530 Subject: [PATCH] Update faceswap.py --- faceswap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/faceswap.py b/faceswap.py index 853ff07..7bfbf6f 100755 --- a/faceswap.py +++ b/faceswap.py @@ -108,6 +108,7 @@ def annotate_landmarks(im, landmarks): return im def draw_convex_hull(im, points, color): + points = points.astype(numpy.int32) points = cv2.convexHull(points) cv2.fillConvexPoly(im, points, color=color)