I am trying to play with image processing on python, and was recommended the use of the skimage module (Scikit-image full name).
I am using a Windows Conda Python 2.7 installation.
When trying to use the canny function,skimage.feature.canny()
, I ran into the following error:
AttributeError: 'module' object has no attribute 'canny'`
Printing out the module version, I appear to be updated.
print skimage.__version__
0.10.1
According to documentation though, this function should exist.
I'm not entirely sure what to do from here. Any help?
EDIT -
>>> 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']
Try using
skimage.filter.canny
(previous place). This should be in the right place(skimage.feature.canny
) in release 0.10.1-2. Related discussion here