方法一:
from matplotlib import pyplot as plt import numpy as np import cv2 img = cv2.imread(‘img.jpg‘) img2 = img[:,:,::-1] # 必须为 ::-1 plt.imshow(img)
原文地址:https://www.cnblogs.com/ctsch/p/9157776.html
时间: 2024-11-05 00:41:57
方法一:
from matplotlib import pyplot as plt import numpy as np import cv2 img = cv2.imread(‘img.jpg‘) img2 = img[:,:,::-1] # 必须为 ::-1 plt.imshow(img)
原文地址:https://www.cnblogs.com/ctsch/p/9157776.html