Page 1 of 1

Windows equivalent for TextCleaner

Posted: 2013-11-21T17:10:20-07:00
by dkas
Hi,
I am looking for windows equivalent of TextCleaner - does anyone know of such tool that works on Windows.
Alternately, java code which can do the same functionality of clearing the background noise on a scanned document would work well for me.

Thanks.

Re: Windows equivalent for TextCleaner

Posted: 2013-11-21T17:16:41-07:00
by fmw42
The core of Textcleaner is the IM function -lat. See http://www.imagemagick.org/script/comma ... ns.php#lat

try something like

-lat 20x20+10%

That will produce a binary image, but the background should clear up.

You can use that as a mask, like I do in my script, to keep the original text colors.

Re: Windows equivalent for TextCleaner

Posted: 2013-11-21T17:27:39-07:00
by dkas
Thanks a lot for the pointer.

I tried -lat 20x20-10% and that made the background totally white.
Appreciate your help.

Re: Windows equivalent for TextCleaner

Posted: 2013-11-21T17:55:11-07:00
by fmw42
dkas wrote:Thanks a lot for the pointer.

I tried -lat 20x20-10% and that made the background totally white.
Appreciate your help.
Plus not minus 10%

-lat 20x20+10%

assuming you have black text on whitish background

If that does not work, post a link to an example image. You can upload to any free image server such as dropbox and put a link to it here.