Removing line noise with inpainting
Posted: 2013-11-16T17:53:50-07:00
Given images of text like the following
I want to remove the line noise to better OCR it. As the text is always blue I used which resulted in
Is it possible to also fill in the areas of the characters where the line intersects with it to keep the characters contiguous?
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
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