用from skimage.transform import resize as imresize替换from scipy.misc import imresize-20200630

from scipy.misc import imresize会报错,不愿意降低scipy版本再重新升级回来

imresize is deprecated! imresize is deprecated in SciPy 1.0.0, and will be removed in 1.3.0. Use Pillow instead: numpy.array(Image.fromarray(arr).resize()).

在https://stackoverflow.com/questions/56204985/how-to-fix-scipy-misc-has-no-attribute-imresize中提醒后,
经尝试,可用from skimage.transform import resize as imresize能运行

你可能感兴趣的:(图像处理)