[ASK] How to Clean Up Black Pixel
Posted: 2014-07-24T00:41:28-07:00
Hello, I need help how to clean a black pixel (noise) surrounding the numbers on a image.
First, I have this Image :

I want to make the numbers is readable by Tesseract Open Source OCR Engine v3.03 with Leptonica
So I try this command line :
and the result is :

The Question is how to remove the black pixel on the second image without touching the pixels of the numbers?
Thank You
First, I have this Image :

I want to make the numbers is readable by Tesseract Open Source OCR Engine v3.03 with Leptonica
So I try this command line :
Code: Select all
convert img1.png -threshold 10% -morphology open "1x4: 0,1,1,0" -normalize -write MPR:source -morphology open rectangle:4x1 -negate img3.png

The Question is how to remove the black pixel on the second image without touching the pixels of the numbers?
Thank You