查看图像尺寸
width=out_img.shape[1]
hight=out_img.shape[0]
图像拼接
#竖直方向上拼接
img3 = np.vstack([img1, img2])
#水平方向上拼接
img3 = np.hstack([img1, img2])
#深度拼接
img3 = np.concatenate((img1, img2), axis=2)
图像裁剪
img[100:200,100:300]
#100:200的意思是高截取100到200像素点的距离
#100:300的意思是宽截取100到300像素点的距离