AttributeError: module ‘scipy.ndimage’ has no attribute ‘imread’
scipy.ndimage老版本材有imread,之后的新版本已弃用 参见官方解释:
把
import scipy.ndimage as image img = image.imread('origin.jpg')
改成
import imageio img = imageio.imread('origin.jpg')
顺利跑通~