def fill(img, points): filler = cv2.convexHull(points) cv2.fillConvexPoly(img, filler, 255) return img