宽高顺序问题
In [1]: from PIL import Image
In [2]: img = Image.open('09.jpg')
In [4]: import numpy as np
In [5]: np.array(img).shape
Out[5]: (600, 400, 3)
In [6]: import cv2
In [7]: img2 = cv2.imread('09.jpg', 1)
In [8]: img2.shape
Out[8]: (600, 400, 3)
In [9]: img.size
Out[9]: (400, 600)