OpenCV中shape和resize函数的区别

  • 有趣的OpenCV,img.shape()和cv2.resize()

在OpenCV中,img.shape[0]得到的是图片的高,img.shape[1]得到是图片的宽,
可是在cv2.resize(img, (dimension[0], dimension[1]))函数里,dimension[0]却是新图片 的宽,dimension[1]是新图片的高,有点奇葩哈

猜你喜欢

转载自blog.csdn.net/haoronge9921/article/details/82800395