1.opencv简单画图形 # coding = utf-8 # 画线.长方形.圆等 import numpy as np import cv2 # 返回一个数组 img = np.zeros((512, 512, 3), np.uint8) # 画线 cv2.line(img, (0, 0), (511, 511), (255, 0, 0), 5) # 画长方形 cv2.rectangle(img, (11, 11), (123, 123), (255, 0, 0), 3) # 画圆 cv2.…