cv2.line(img, (line[x][0], line[x][1]),
(line[x][2], line[x][3]), color, lineweight)
cv2.ellipse(img, (arc[y][4], arc[y][5]), (arc[y][6],
arc[y][6]), 0, Angle1, Angle2, color, lineweight)
cv2.circle(img, (arc[z][4], arc[z][5]), arc[z][6], 0, -1)
pts = np.array([[10,5],[20,30],[70,20],[50,10]], np.int32)
pts = pts.reshape((-1,1,2))
cv2.polylines(img,[pts],True,(0,255,255))
img = np.zeros((1080, 1920, 3), np.uint8)
area1 = np.array([[250, 200], [300, 100], [750, 800], [100, 1000]])
area2 = np.array([[1000, 200], [1500, 200], [1500, 400], [1000, 400]])
cv2.fillPoly(img, [area1, area2], (255, 255, 255))
plt.imshow(img)
opencv
图形上下翻转
img = cv2.flip(img, 0)
https://www.codetd.com/article/4941206