iamtryingtoreadanimagewithscipy.howeveritdoesnotacceptthescipy.misc.imreadpart.whatcouldbethecauseofthis?
导入脚本
scipy.misc
scipy.misc.imread('test.TIF ' )。
跟踪后退(mostrecentcalllast ) :
文件',line 1,in
scipy.misc.imread('test.TIF ' )。
youneedtoinstallpil.fromthedocsonscipy.misc :
notethatthepythonimaginglibrary (pil ) isnotadependencyofscipyandthereforethepilutilmoduleisnotavailableonsystemsthatdon’th
After安装pil,iwasabletoaccessimreadasfollows 3360
In [1]: import scipy.misc
In [2]: scipy.misc.imread
Out[2]: