import cv2 as cv from matplotlib import pyplot as plt img = cv.imread('img4.jpg') plt.figure() plt.imshow(img[:, :, ::-1]) plt.show()