方法一:
from matplotlib import pyplot as plt import numpy as np import cv2 img = cv2.imread('img.jpg') img2 = img[:,:,::-1] # 必须为 ::-1 plt.imshow(img)
方法一:
from matplotlib import pyplot as plt import numpy as np import cv2 img = cv2.imread('img.jpg') img2 = img[:,:,::-1] # 必须为 ::-1 plt.imshow(img)