Re: Stable vs Dev version, document image enhancement

Hi Parand, Welcome! Most of the gallery examples work in the current release (0.7.2 I believe), but the rank filter is in a PR that was merged recently, and is presently only in the dev version. You may want the functionality in the rank filter for OCR work, where fast local operations like the otsu threshold could be very beneficial. I'll let other people answer the questions about specific references as I'm on the road, but I think most of what you need to do is available in scikit-image. Josh Warner On Wednesday, December 12, 2012 7:00:24 PM UTC-6, Parand Darugar wrote:
Hello,
I'm new to scikit-image, having mostly used PIL and imagemagick to date. Looks very promising, thanks for putting it together.
A few newbie questions:
- It seems the examples in the gallery are based on the dev version as opposed to the stable version? Therefore I assume it's recommended to use the dev version instead of the "pip install" version? I just tried the latest from git and am getting some errors (see below) - which version should I be using?
- My initial goal is image/document enhancement and cleanup in order to improve OCR. The images are primarily captured via cell phone cameras and scanners, so I'm looking to normalize and enhance the color, remove noise, and straighten them. Any pointers to code, papers, or algorithms that may be of interest would be appreciated.
-- Error message --
import skimage.filter.rank as rank Traceback (most recent call last): File "<stdin>", line 1, in <module> File "skimage/filter/__init__.py", line 2, in <module> from .ctmf import median_filter File "skimage/filter/ctmf.py", line 15, in <module> from . import _ctmf ImportError: cannot import name _ctmf
Much thanks,
Parand

On Thu, Dec 13, 2012 at 11:22 PM, Josh Warner <silvertrumpet999@gmail.com>wrote:
Hi Parand,
Welcome! Most of the gallery examples work in the current release (0.7.2 I believe), but the rank filter is in a PR that was merged recently, and is presently only in the dev version. You may want the functionality in the rank filter for OCR work, where fast local operations like the otsu threshold could be very beneficial.
I'll let other people answer the questions about specific references as I'm on the road, but I think most of what you need to do is available in scikit-image.
Josh Warner
Just wanted to add: The documentation for the last release can be found here: http://scikit-image.org/docs/0.7.0/ It might be a good idea for us to point to the stable version instead of the development version by default. On Wednesday, December 12, 2012 7:00:24 PM UTC-6, Parand Darugar wrote:
<snip>
- My initial goal is image/document enhancement and cleanup in order to
improve OCR. The images are primarily captured via cell phone cameras and scanners, so I'm looking to normalize and enhance the color, remove noise, and straighten them. Any pointers to code, papers, or algorithms that may be of interest would be appreciated.
-- Error message --
import skimage.filter.rank as rank Traceback (most recent call last): File "<stdin>", line 1, in <module> File "skimage/filter/__init__.py", line 2, in <module> from .ctmf import median_filter File "skimage/filter/ctmf.py", line 15, in <module> from . import _ctmf ImportError: cannot import name _ctmf
This shouldn't happen. How did you install scikit-image? Are you sure that you built the package after downloading. Cheers, -Tony
participants (2)
-
Josh Warner
-
Tony Yu