opencv 修改图片尺寸

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()
posted @ 2018-07-01 14:10  luoganttcc  阅读(274)  评论(0编辑  收藏  举报