I am new to matlab and I am trying learn OCR in it. For now I am just trying to get a system working before diving into the theory for constructing my own system.
Anyways I am following code snippet from here
However whenever I try the code not only my rectangles appear inverted but they also aren't imposed on my original image.
I am thinking that the problem might be here
[Ilabel num] = bwlabel(Ifill);
disp(num);
Iprops = regionprops(Ilabel);
Ibox = [Iprops.BoundingBox];
Ibox = reshape(Ibox,[4 50]);
imshow(I)
I am using Matlab R2012b. Any help in this regard would be really appreciated.
A few references to check:
- the mathworks docs on character recognition
- Google results on "matlab character recognition"
- Google results on "matlab character recognition"
These should be enough to help you successfully finish. I had a similar task and used these. (I had to recognise coins in image with matlab using different algorithms.) So: check all available examples, check all/main existing algorithm examples/ideas (in other languages possibly: the google.lv results were great for me!), then combine them all to better create a working example.
Another good resource if you get stuck: post your question here, on the mathworks matlab central newsgroup. But be advised: you must have done "your homework" before posting, because people there can help, but (like here) they will not solve the problem for you.
Good luck.