把一组点转换为mask hull = cv2.convexHull(landmarks).astype(np.int32)cv2.fillPoly(mask, [hull], (255, 255, 255))