Character recognition

99封情书 提交于 2020-01-04 14:06:34

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/15183590/character-recognition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!