import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
img = cv.imread(’/Users/elaine/Downloads/chiyi.jpg’)
plt.imshow(img, cmap = ‘gray’, interpolation = ‘bicubic’)
plt.xticks([]), plt.yticks([]) # 隐藏 x 轴和 y 轴上的刻度值
plt.show()
opencv读图像
最新推荐文章于 2024-08-02 16:44:42 发布