字符识别 [英] Character recognition
问题描述
我是matlab的新手,我正在尝试学习OCR。现在我只是试着让系统工作,然后再深入研究构建我自己的系统的理论。
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.
无论如何我正在跟踪此处
然而,每当我尝试代码时,不仅我的矩形看起来是倒置的,而且它们也不会强加在原始图像上。
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)
我正在使用Matlab R2012b。在这方面的任何帮助将非常感激。
I am using Matlab R2012b. Any help in this regard would be really appreciated.
推荐答案
一些参考检查:
- the mathworks docs on character recognition
- Google results on "matlab character recognition"
- Google results on "matlab character recognition"
这些应足以帮助您顺利完成。我有类似的任务,并使用这些。 (我必须使用不同的算法识别图像中的硬币。)所以:检查所有可用的示例,检查所有/主要的现有算法示例/想法(可能在其他语言中:google.lv结果对我来说很棒!),然后将它们结合起来以更好地创建一个有效的例子。
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.
如果你遇到困难的另一个好资源:发表你的问题这里,在mathworks matlab中央新闻组。但是请注意:你必须在发布之前完成你的功课,因为那里的人可以提供帮助,但是(就像这里)他们不会为你解决问题。
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.
祝你好运。
这篇关于字符识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!