Removing line noise with inpainting

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
freznel
Posts: 1
Joined: 2013-11-16T17:22:51-07:00
Authentication code: 6789

Removing line noise with inpainting

Post by freznel »

Given images of text like the following
Image
I want to remove the line noise to better OCR it. As the text is always blue I used

Code: Select all

convert $in -fuzz 40% -fill white +opaque blue $out
which resulted in
Image
Is it possible to also fill in the areas of the characters where the line intersects with it to keep the characters contiguous?

Code: Select all

$ convert -version
Version: ImageMagick 6.8.7-3 2013-11-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC
Delegates: bzlib djvu fftw fontconfig freetype gslib jng jpeg lcms ltdl lzma png ps png tiff webp xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing line noise with inpainting

Post by fmw42 »

IM does not have any inpainting function to my knowledge. (Though someone else knows an approximation in IM commands).

Nevertheless, is this your captcha? If not, then no one will help you to break someone else's captcha system.
Post Reply