def drawlines(img, points): filler = cv2.convexHull(points) cv2.polylines(img, filler, True, (0, 0, 0), thickness=2) return img