How to remove these dashed lines from image, for Tesseract OCR recongnition?
I try -morphology, but i'm very newbie in this command of imagemagick , am trying solve this for three days... someone can help me?
Sorry if english is not right
Remove horizontal dashed lines
Re: Remove horizontal dashed lines
Hello guys, i removed the lines using the following script:
But, lines together to the text don't are removed:
it seems is a hard problem, none answer until now...
Code: Select all
convert img1.jpg -write MPR:source -morphology close "2x15: \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,1,1,1,1,1,1,1,1,1,1,1,1,1,0" \
-morphology erode square MPR:source -compose Lighten -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-sigmoidal-contrast 50,80% \
img2.jpg;
it seems is a hard problem, none answer until now...