我正在尝试在python上进行图像处理,建议使用sklimage模块(Scikit image full name)。
我正在使用WindowsCondaPython2.7安装。
尝试使用canny函数skimage.feature.canny()
时,遇到以下错误:
AttributeError: 'module' object has no attribute 'canny'`
打印出模块版本后,我似乎得到了更新。
print skimage.__version__
0.10.1
不过,根据documentation,这个函数应该存在。
我不知道从这里该怎么办。有什么帮助吗?
编辑-
>>> print dir(skimage.feature)
['BRIEF', 'CENSURE', 'ORB', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_daisy', '_hessian_det_appx', '_hog', '_texture', 'blob', 'blob_dog', 'blob_doh', 'blob_log', 'brief', 'brief_cy', 'censure', 'censure_cy', 'corner', 'corner_cy', 'corner_fast', 'corner_foerstner', 'corner_harris', 'corner_kitchen_rosenfeld', 'corner_moravec', 'corner_orientations', 'corner_peaks', 'corner_shi_tomasi', 'corner_subpix', 'daisy', 'greycomatrix', 'greycoprops', 'hessian_matrix', 'hessian_matrix_det', 'hessian_matrix_eigvals', 'hog', 'local_binary_pattern', 'match', 'match_descriptors', 'match_template', 'orb', 'orb_cy', 'peak', 'peak_local_max', 'plot_matches', 'structure_tensor', 'structure_tensor_eigvals', 'template', 'texture', 'util']
尝试使用
skimage.filter.canny
(前一个位置)。这应该在0.10.1-2版中的正确位置(skimage.feature.canny
)。相关讨论here相关问题 更多 >
编程相关推荐