尝试使用scipy.misc.imread
但出现错误AttributeError: 'module' object has no attribute 'imread'
。
我知道我必须安装PIL
才能使用其他 SO 问题所建议的图像功能。但是,我安装了它但没有帮助。
我已经scipy
通过ScipySuperpack
. PIL
通过安装pip
。使用 OS X 机器。
尝试使用scipy.misc.imread
但出现错误AttributeError: 'module' object has no attribute 'imread'
。
我知道我必须安装PIL
才能使用其他 SO 问题所建议的图像功能。但是,我安装了它但没有帮助。
我已经scipy
通过ScipySuperpack
. PIL
通过安装pip
。使用 OS X 机器。
还有 scipy 扩展 scikit-image,它提供了丰富的图像相关操作: http ://scikit-image.org/
您必须导入模块:
import scipy.ndimage