opencv 分辨率与resize

通过shape得到h,w, resize时先传入w。

h,w,depth=img.shape
img=cv2.resize(img,(int(w/2),int(h/2)),interpolation=cv2.INTER_AREA)


猜你喜欢

转载自blog.csdn.net/dlhlSC/article/details/76550391