module scipy.ndimage has no attribute imread

代码:

import scipy
import scipy.ndimage
a = scipy.ndimage.imread(“dhoni.jpg”)

报错:

AttributeError: module ‘scipy.ndimage’ has no attribute ‘imread’

解决方案:

调用imageio
import imageio
a = imageio.imread(“dhoni.jpg”)

你可能感兴趣的:(python,python,机器学习)