import cv2
# Load an color image in grayscale
img = cv2.imread('psu.jpeg',3)
#cv2.imshow('image',img)
res=cv2.resize(img,(1340,1104),interpolation=cv2.INTER_CUBIC)
cv2.imwrite('llg.jpg',res)
cv2.waitKey(0)
cv2.destroyAllWindows()
opencv 修改图片尺寸
猜你喜欢
转载自blog.csdn.net/luoganttcc/article/details/80873945
今日推荐
周排行