I am reading an image in python with three different libraries
- imageio
- PIL.Image
- cv2.
The output I am getting on reading image with each one of these libraries is different. For example
On reading with imageio
a = imageio.imread('test_img.png')
The output is of type - uint8 and size is (500,334,4)
using Image
b = Image.open('test_img.png')
type - Image, size (334,500)
using cv2
c = cv2.imread('test_img.png')
type- uint8, size (500,334,3)
Why I am getting three different size for same image when using three different libraries? Please, help me in understanding the difference.