画图
龚慧林
积极、乐观、努力
展开
-
python opencv画图
import numpy as np import cv2 def drawPic(): img=np.zeros((512,512,3), np.uint8) # Draw a diagonal blue line with thickness of 5 px cv2.line(img,(0,0),(511,511),(255,0,0),5) cv2.rectangle(img,...原创 2019-09-30 12:45:22 · 335 阅读 · 0 评论 -
matplotlib画图 2
import numpy as np import matplotlib.pyplot as plt # Compute the x and y coordinates for points on sine and cosine curves x = np.arange(-3 * np.pi, 3 * np.pi, 0.1) y_sin = np.sin(x) y_cos = np.cos(x...原创 2019-10-07 15:59:46 · 119 阅读 · 0 评论