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