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()
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()