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
No products are associated with this question.
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.