Page 1 of 1

Removing line noise with inpainting

Posted: 2013-11-16T17:53:50-07:00
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

Re: Removing line noise with inpainting

Posted: 2013-11-16T18:36:12-07:00
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.