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)