Python opencv cv2.line(), cv2.circle(), cv2.rectangle(), cv2.ellipse(), cv2.putText()
1.cv2.line():划线importcv2importnumpyasnpimg=np.zeros((512,512,3),dtype=np.uint8)cv2.line(img,(10,10),(510,510),(0,255,0),5)#img:图像,起点坐标,终点坐标,颜色,线的宽度2.cv2.circle():画圆cv2.circle(img,(50,50),10,(0,0,255),