I'm trying to figure out what's wrong with my code.
I want to load my image containing the alpha channel and the description from the official website says that:
cv.IMREAD_UNCHANGED: If set, return the loaded image as is (with alpha channel, otherwise it gets cropped).
Here's my try:
import cv2 as cv
img2 = cv.imread( 'lbj.jpg' , cv.IMREAD_UNCHANGED)
img2.shape
And the result shows : (350, 590, 3)
Isn't it supposed to be (350,590,4)
?
Thanks!