Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Text extraction from a binary image

Asked by Soumyadip on 29 Mar 2013

I am doing a project to read the data on a calculator screen via image processing. I need to make the image binary in such a way that only the digits in the image appear black and the rest is white. Can I do it with any image enhancement tool? Please suggest. Can somebody do it for me?

The link to the image is -

Thanks in advance

1 Comment

Chandra Shekhar on 29 Mar 2013

There is no image in that link,it is saying doesn't exist.


1 Answer

Answer by Chandra Shekhar on 29 Mar 2013
Accepted answer

use 'histeq' function for enhancement or use 'adapthisteq' by choosing proper clipping range.

After applying this method convert to binary.


Soumyadip on 30 Mar 2013

I tried applying histeq but neighboring regions other than the digits are also turning out to the black which is undesirable. What to do?

Soumyadip on 30 Mar 2013

I applied adapthisteq and converted to binary but I am getting dark patches like -

Please advise how to remove the dark regions

Image Analyst on 31 Mar 2013

See my answer to your duplicate question. I got the numbers out of there using color segmentation and some standard image processing to clean up some noise. I didn't even have to do background correction. You should not accept an answer if it didn't answer your question.

Chandra Shekhar

Contact us