一、读取图像
import cv2
from matplotlib import pyplot as plt
img_path = './test_img2.jpeg'
img = cv2.imread(img_path)
# img = plt.imread(img_path)
cv2.imshow('img', img)
cv2.waitKey(0)
cv2.destroyAllWindows()
plt.imshow(img)
二、OpnCV读取,分别显示图像
(OpenCV)
(Matplotlib)
三、Matplotlib读取,分别显示图像
(OpenCV)
(Matplotli