Page 1 of 1

Using IM to smooth breaks in text

Posted: 2010-05-16T17:57:57-07:00
by jrim
Hi, I need to remove the breaks from the letters in this image:

Image

As you can see, the Y, J, and D, have dots breaking up the letters. Is there a way to 'smooth' the text or fill in the gaps? I use IM from the command line.

Re: Using IM to smooth breaks in text

Posted: 2010-05-16T18:14:48-07:00
by fmw42
try

convert rrkpyh.jpg -morphology open square rrkpyh_open.jpg

see http://www.imagemagick.org/Usage/morphology/

However, if you are trying to break a captcha technique, then I don't condone that.