Using IM to smooth breaks in text

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
jrim

Using IM to smooth breaks in text

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

Re: Using IM to smooth breaks in text

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