问题
AttributeError: module ‘scipy.ndimage’ has no attribute ‘imread’
原因
scipy.ndimage老版本材有imread,之后的新版本已弃用
参见官方解释:
解决方案
把
import scipy.ndimage as image
img = image.imread('origin.jpg')
改成
AttributeError: module ‘scipy.ndimage’ has no attribute ‘imread’
scipy.ndimage老版本材有imread,之后的新版本已弃用
参见官方解释:
把
import scipy.ndimage as image
img = image.imread('origin.jpg')
改成