图片处理——python图片属性(二) 形状 1 # opencv 2 print(img.shape) (300, 400, 3) (H, W, C) 3 # PIL 4 print(img1.size) (400, 300) (W, H)