略读模块缺乏文档化特征

2024-05-16 01:57:37 发布

您现在位置:Python中文网/ 问答频道 /正文


我正在尝试在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']

Tags: 模块函数namematchblobmatrixfeatureprint