I installed skimage in ubuntu terminal using command:
sudo apt-get install python-skimage
it installed succesfully but when using it in my code (from skimage.filters import threshold_local
). i get an error:
Traceback (most recent call last):
File "scan.py", line 4, in <module>
from skimage.filters import threshold_local
ImportError: No module named filters
kindly someone help me to correct this!
The problem is resolved now :D. What I found is that there is no module named 'filters' in skimage '0.10.1' as it has 'filter'. So, when I upgraded it using the command
sudo pip install --upgrade scikit-image
to version '0.13.1', it comes with the 'filters' module instead of 'filter'. The 'filters' module has all attributes of thresholding including 'local' and others as well.