Page 1 of 1

Darken individual letters

Posted: 2015-10-22T02:40:55-07:00
by miguellint
Hello...

I have a list of names similar to the one in the linked image below. Eventually I'd like to ocr the list.

I'm trying to darken the light letters only and have experimented with a few of the Brightness/Contrast scripts from Fred's ImageMagick Scripts.

My attempts leave all of the letters quite blocky. (The example is a bit extreme but you see what I'm getting at)

Any suggestions as to how to proceed.

Dropbox link - just X any pop-ups
http://tinyurl.com/qc4fqh5

Using Kubuntu 15.04 and IM 6.8.9-9

Thanks very much
Miguel

Re: Darken individual letters

Posted: 2015-10-22T10:21:15-07:00
by fmw42
try

Code: Select all

convert image.png -negate -lat 10x10+2% -negate result.png
or

Code: Select all

convert name2.png -gamma 0.33 show:

Re: Darken individual letters

Posted: 2015-10-22T13:55:12-07:00
by miguellint
Hello Fred...

Thanks for the examples. The negate/lat/negate example is exactly what I'm looking for. Thanks.

And can I also say that your multicrop script is pure wizardry. Jaw dropping wizardry at that :-)

All the best
Miguel

Re: Darken individual letters

Posted: 2015-10-22T14:36:19-07:00
by fmw42
Thanks for the compliment! Glad both are of help