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 » 2013-11-21T17:10:20-07:00

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: 25400
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows equivalent for TextCleaner

Post by fmw42 » 2013-11-21T17:16:41-07:00

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 » 2013-11-21T17:27:39-07:00

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: 25400
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows equivalent for TextCleaner

Post by fmw42 » 2013-11-21T17:55:11-07:00

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