img = cv2.imread(image_path)
plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis
plt.show()
linux下cv2.imshow()无法使用的解决方法
最新推荐文章于 2024-06-29 20:24:34 发布
img = cv2.imread(image_path)
plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis
plt.show()