Darken individual letters

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
miguellint
Posts: 22
Joined: 2015-09-27T20:26:53-07:00
Authentication code: 1151

Darken individual letters

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

Re: Darken individual letters

Post 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:
miguellint
Posts: 22
Joined: 2015-09-27T20:26:53-07:00
Authentication code: 1151

Re: Darken individual letters

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

Re: Darken individual letters

Post by fmw42 »

Thanks for the compliment! Glad both are of help
Post Reply