[ASK] How to Clean Up Black Pixel

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
clouwdy
Posts: 1
Joined: 2014-07-24T00:28:19-07:00
Authentication code: 6789

[ASK] How to Clean Up Black Pixel

Post by clouwdy »

Hello, I need help how to clean a black pixel (noise) surrounding the numbers on a image.

First, I have this Image :
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
and the result is :
Image

The Question is how to remove the black pixel on the second image without touching the pixels of the numbers?
Thank You
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: [ASK] How to Clean Up Black Pixel

Post by snibgo »

This seems to be for robots to defeat captcha.

As a person who suffers from robots defeating captcha, and who also suffers from trying to login to sites that have increasingly difficult captcha, I won't help.
snibgo's IM pages: im.snibgo.com
Post Reply