图像中有两种resize方式:
1、PIL
PIL带ANTIALIAS滤镜缩放结果
from PIL import Image
img = Image.open('D:\\image_for_test\\Spee.jpg')
img = img.resize((width, height),Image.ANTIALIAS)
2、opencv
opencv可以resize numpy类型的!!!
import cv2
or_pic =cv2.imread(image_path)
change_image_size