我正在尝试在python上进行图像处理,因此建议使用skimage模块(Scikit-image全名)。
我正在使用Windows Conda Python 2.7安装。
尝试使用canny函数时,skimage.feature.canny()
出现以下错误:
AttributeError: 'module' object has no attribute 'canny'`
打印出模块版本,我似乎已更新。
print skimage.__version__
0.10.1
但是根据文档,此功能应该存在。
我不确定从这里开始该怎么做。有什么帮助吗?
编辑 -
>>> 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
(上一个地方)。这应该skimage.feature.canny
在版本0.10.1-2中的正确位置()。这里的相关讨论
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句