Smoothing scanned text jagged/rough edges using Hit-And-Miss
Posted: 2013-02-15T09:18:25-07:00
Hi, short and sweet
Input: Scanned text pages, pure black/white pixels with rough/jagged edges
What I have done so far
file.jpg -> -depth 1 -compress none binarized.pgm -> HMT Thicken, Thinning using custom kernels -> Adaptive blur 0x0.55
What I wish for?
I will be using these images further down the stream as input to potrace, OCR and stuffs. Before that I want the text enhanced further morphologically.
What morphological changes I would love to have?
In the jagged/staircase edge, is it possible to fill the triangular part with black color so that they may look more curved than rough? Something like the bottom right character where I have painted the rough edges. How to achieve this.
Assumptions:
No background image
No colors
No skews
P.S: Am just an entry level to ImageMagick or image enhancement. Please forgive my ignorance if the answer is very obvious or simple.
Between, I LOVE IMAGEMAGICK
Input: Scanned text pages, pure black/white pixels with rough/jagged edges
What I have done so far
file.jpg -> -depth 1 -compress none binarized.pgm -> HMT Thicken, Thinning using custom kernels -> Adaptive blur 0x0.55
What I wish for?
I will be using these images further down the stream as input to potrace, OCR and stuffs. Before that I want the text enhanced further morphologically.
What morphological changes I would love to have?
In the jagged/staircase edge, is it possible to fill the triangular part with black color so that they may look more curved than rough? Something like the bottom right character where I have painted the rough edges. How to achieve this.
Assumptions:
No background image
No colors
No skews
P.S: Am just an entry level to ImageMagick or image enhancement. Please forgive my ignorance if the answer is very obvious or simple.
Between, I LOVE IMAGEMAGICK