【发布时间】:2014-11-12 09:06:30
【问题描述】:
我正在尝试在 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
不过根据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']
【问题讨论】:
-
为什么不试试
print dir(skimage.feature)查看所有属性? -
感谢您的提示。见编辑。 Canny 不在。
标签: python image-processing scikit-image