把一组点转换为mask

hull = cv2.convexHull(landmarks).astype(np.int32)
cv2.fillPoly(mask, [hull], (255, 255, 255))
原文地址:https://www.cnblogs.com/rabitvision/p/12362810.html