坐标系
坐标系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)
输出
resize(200, 100, 3)
在opencv中row=height=y colum=width=x
img = cv2.imread('testimg.jpeg')
print(img.shape)
print(np.shape(img))
输出
(3072, 4096, 3)
(3072, 4096, 3)
img = cv2.resize(img, (100, 200))
print(img.shape)
输出
resize(200, 100, 3)
在opencv中row=height=y colum=width=x
本文标题:OpenCV 尺寸坐标问题
本文链接:https://www.haomeiwen.com/subject/recjmftx.html
网友评论