Remove background and only show Digit

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
nicholas9950
Posts: 4
Joined: 2015-04-14T19:19:15-07:00
Authentication code: 6789

Remove background and only show Digit

Post by nicholas9950 »

Hi

I need help to process the image below. I want the image to be processed to show Digit only as i need it to be read by Tesseract OCR. Is it possible?
As long the number can be read any method is fine.
i had tried alot of method but the reading was not accurate.
Please help

OS: Window 8
Version: ImageMagick 6.9.1-1 Q16 x64 2015-03-20

Image
nicholas9950
Posts: 4
Joined: 2015-04-14T19:19:15-07:00
Authentication code: 6789

Re: Remove background and only show Digit

Post by nicholas9950 »

I had tried

Code: Select all

-density 288 -depth 8 -monochrome -resize 2000x1500 -extent 2000x1500 -level 20x100% -lat 60x60-5% -morphology close disk:1.5
and obtain an image as below. I want to make the background black, only showing the text.

Image
Post Reply