Windows equivalent for TextCleaner

A plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations.
Post Reply
dkas
Posts: 2
Joined: 2013-11-21T17:06:07-07:00
Authentication code: 6789

Windows equivalent for TextCleaner

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows equivalent for TextCleaner

Post 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.
dkas
Posts: 2
Joined: 2013-11-21T17:06:07-07:00
Authentication code: 6789

Re: Windows equivalent for TextCleaner

Post by dkas »

Thanks a lot for the pointer.

I tried -lat 20x20-10% and that made the background totally white.
Appreciate your help.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows equivalent for TextCleaner

Post 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.
Post Reply