【709】图片resize放大缩小


参考:Python 中使用PIL中的resize 进行缩放

参考:cv2.resize()原理详解

img = img.resize((width, height),Image.ANTIALIAS)

cv2

img = cv.resize(img,(width,height))