# 0203.py
import cv2
from matplotlib import pyplot as plt

imageFile = './data/lena.jpg'
imgBGR = cv2.imread(imageFile) # cv2.IMREAD_COLOR
plt.axis('off')

#plt.imshow(imgBGR)
#plt.show()

imgRGB = cv2.cvtColor(imgBGR, cv2.COLOR_BGR2RGB)
plt.imshow(imgRGB)
plt.show()



# 0203.py
import cv2
from matplotlib import pyplot as plt

imageFile = './data/lena.jpg'
imgBGR = cv2.imread(imageFile) # cv2.IMREAD_COLOR
plt.axis('off')

#plt.imshow(imgBGR)
#plt.show()

imgRGB = cv2.cvtColor(imgBGR, cv2.COLOR_BGR2RGB)
plt.imshow(imgRGB)
plt.show()



# 0203.py # cv2.IMREAD_COLOR #plt.imshow(imgBGR) #plt.show()