import cv2 img = cv2.imread("sample1.png") img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) cv2.imshow("sample1.png", img) cv2.waitKey(0) cv2.destroyAllWi