I have been trying to load .png files with transparency channel (RGB and Alph) with no luck. It appears that openCV strips the 4th channel out of the image. Is there any met
The best possible way to load a png image with all 4 channels is ;
img= cv2.imread('imagepath.jpg',negative value)
As per openCV documentation, If Flag value is, 1) =0 Return a grayscale image. 2) <0 Return the loaded image as is (with alpha channel).