Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Filling missing pixels in a contour

This is for a OCR project where am doing the pre-processing of the image. One of the image, where some part of the text clear and visible but some are not.

Source Image

C:\fakepath\img1.jpg

After pre processing

C:\fakepath\img2.jpg

Here all the numbers are not clear.

Tried coloring all non black pixel to white, but some pixels in character where left behind which affected the OCR process. I want a solution where I can find all letters and fill any any missing pixels to make it OCR friendly.

All suggestions are welcome

click to hide/show revision 2
No.2 Revision

updated 2017-08-11 10:05:52 -0600

berak gravatar image

Filling missing pixels in a contour

This is for a OCR project where am doing the pre-processing of the image. One of the image, where some part of the text clear and visible but some are not.

Source Image

C:\fakepath\img1.jpgC:\fakepath\img1.jpg

After pre processing

C:\fakepath\img2.jpgC:\fakepath\img2.jpg

Here all the numbers are not clear.

Tried coloring all non black pixel to white, but some pixels in character where left behind which affected the OCR process. I want a solution where I can find all letters and fill any any missing pixels to make it OCR friendly.

All suggestions are welcome