recognizing numbers from a table in an image

2 views (last 30 days)
Akshay
Akshay on 12 Dec 2012
http://knowmoreaboutrmp.files.wordpress.com/2011/02/rmp-kolkatta-rail-tieup2.jpg this is my image..its a railway ticket.. i need to recognize the pnr no. on the top left corner of the table using image processing and ocr.. how to do this?? i am a beginer please help

Answers (1)

Image Analyst
Image Analyst on 15 Dec 2012
If the yellow box is always in a fixed position, you can simply crop it out using known, fixed coordinates. If it moves around you can find the yellow box by using one of my color segmentation methods in my File Exchange. Basically find yellow by something like
yellowPixels = redChannel > 128 | greenChannel > 128 | blueChannel < 128;
then call imfill. Then use regionprops to find the largest yellow blob and use ismember or wbareaopen to extract only the biggest blob. Then multiply that mask by the image. Then you need to do OCR on the image which goes beyond the help we offer here.

Categories

Find more on Denoising and Compression in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!