filepath = ""
image = cv2.imread(filepath)
print(image.shape)
image = cv2.resize(image,(2048,1024),interpolation=cv2.INTER_AREA)
print(image.shape)
#输出结果
(220, 220, 3)
(1024, 2048, 3)
cv2.resize()改变图片尺寸
最新推荐文章于 2024-06-17 16:57:11 发布