美文网首页A little progress
OpenCV 尺寸坐标问题

OpenCV 尺寸坐标问题

作者: 翻开日记 | 来源:发表于2018-07-23 14:51 被阅读0次

坐标系

坐标系
img = cv2.imread('testimg.jpeg')
print(img.shape)
print(np.shape(img))

输出

(3072, 4096, 3)
(3072, 4096, 3)

Resize

原图
img = cv2.resize(img, (100, 200))
print(img.shape)

输出

(200, 100, 3)

resize

在opencv中row=height=y colum=width=x

相关文章

网友评论

    本文标题:OpenCV 尺寸坐标问题

    本文链接:https://www.haomeiwen.com/subject/recjmftx.html