I have an image read from cv2.imread, the shape is (2320, 1744, 3). However, when I use Pillow, the results are very different:
a = PIL.Image.open('mypic')a.size # => (2320, 1744)b = np.asarray(a)b.shape # => (1744, 2320, 3)
Why is it automatically transposed?