如何使用winform C#进行光学字符识别(ocr)? [英] how to make Optical character recognition (ocr) with winform C#?

查看:174
本文介绍了如何使用winform C#进行光学字符识别(ocr)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在撰写论文,但我不知道如何在文本框中将图像转换为文本?

我使用了emgu CV并尝试使用winform C#,但没有成功。

请帮帮我。谢谢。



从下面的评论中复制的其他信息

对不起,我不知道。我的论文是使用过程图像和RFID技术的智能停车。我做了大约90%。我已经从照片中识别出车牌号,分隔每个字符,读取RFID标签....我只是不知道如何将字符图像转换为文本字符以存储在数据库中。只有这个。

我的专业是电信而不是IT,我的C#技能还不够好。谢谢!

I am doing thesis but I do not know how to convert from image to text in textbox?
I used emgu CV and try to make winform C#, but not success.
please help me. Thanks.

additional information copied from comment below
Sorry, I don't know. My thesis is "Smart parking using process Images and RFID technology". I have done about 90%. I have recognized the vehicle number plate from photos, separating each character, read RFID tag.... I just do not know how to convert from character image to text characters to store in the database. Only this.
My major is telecom not IT, my C# skill is not good enough. Thanks!

推荐答案

步骤1)做一点研究。谷歌是一个很好的起点

步骤2)开始编码

步骤3)编译并使用调试来解决小问题

步骤4)当你遇到问题时你不知道如何解决但至少你试过了,然后回来问一些具体的代码片段给出了问题



很抱歉,如果这不是你想要的答案。但你的问题有点太宽,无法在快速答案中得到解答。如果你对具体问题提出10个具体问题,那就更好了,你得到更快的帮助,而不是关于如何引导的大问题



另一方面......我强烈建议你阅读:

你有什么试过? [ ^ ]

如何提问? [ ^ ]



仔细阅读这些链接并向他们学习。如果你这样做,你的下一个问题将得到更好的答案。



加法

发布代码段的最佳方式 [ ^ ]
Step 1) Do a little research. Google is a good start point
Step 2) Start coding
Step 3) Compile and use the debug to solve little issues
Step 4) When you get a problem you don't know how to solve but at least you tried it, then come back and ask for something concrete with a snippet of the code giving problems

Sorry if this is not the answer you were looking for. But your question is a bit too wide to be answered at the "Quick" Answers. It is better and you get faster help if you make 10 concrete questions about concrete problems, than a big question about a "how-to guide"

On the other hand... I strongly recommend you to read:
What have you tried?[^]
How to ask a question?[^]

Read those links carefully and learn from them. If you do, your next question will get much better answers.

addition
best way to post code snippets[^]


查看此(EMGU) 。希望它有所帮助。



编辑

对不起..没有读过你已经尝试过EMGU。也许您可以告诉我们您在EMGU找到的确切问题。



您也可以尝试 TESSERACT
Have a look at this (EMGU). Hope it helps.

EDIT
Sorry..didn't read you already tried EMGU. Maybe you could tell us what exact problems did you find with EMGU.

You may also try TESSERACT


这是非常好的,你设法分离图像识别工作中的字符。你知道,因为你只需要识别车牌号码,这应该比原始OCR产品可以做的未知字体的文本页面更简单。您只有很少的允许字符和固定字体,但您不能使用字典。在这种情况下,即使是相对较差的产品也可以提供帮助,甚至是Tesseract。



有Tesseract的.NET包装器:

http://code.google.com/p/tesseractdotnet [ ^ ],

https ://github.com/charlesw/tesseract [ ^ ] 。



另见我过去的答案: C#中的Tesseract Wrapper [ ^ ]。



您可以在CodeProject上找到大量有关OCR技术的文章。你可以找到所有并阅读;一些产品(当然是完整的源代码)非常好,但他们需要一些工作来生产即用型产品。但是,由于您已经完成了一些必要的工作,并且您的问题相对简单,我认为您可以轻松采用这些代码,您的派生工作将满足您的需求。只需搜索它们: http://www.codeproject.com/search.aspx?q=OCR+%28%22.NET%22+OR+%22C#%22%29&doctypeid=1&sort=createddesc [ ^ ]。



我引用了过去的几个答案;这些答案引用了一些CodeProject文章:

我需要一个ocr来拍摄相机图像 [ ^ ]。



祝你好运,
-SA
This is very good that you managed to separate the characters in your image recognition effort. You see, as you need to recognize only the license plate number, this should be simpler that the pages of text of unknown fonts, which typical OCR product could do. You have very few allowed characters and fixed font, but you cannot use a dictionary. In this case, even the relatively bad product can help, even Tesseract.

There are .NET wrappers for Tesseract:
http://code.google.com/p/tesseractdotnet[^],
https://github.com/charlesw/tesseract[^].

See also my past answer: Tesseract Wrapper in C#[^].

You can find a good number of articles on OCR technology on CodeProject. You can find them all and read; some products (in full source code, of course) are very good, but they need some work to produce a ready-to-use product. But as you already done some essential work, and your problem is relatively simple, I think you can easily adopt these codes and your derived work will do what you need. Just search them: http://www.codeproject.com/search.aspx?q=OCR+%28%22.NET%22+OR+%22C#%22%29&doctypeid=1&sort=createddesc[^].

I referenced several of my past answers; and these answers reference some CodeProject articles:
i need an ocr for a camera image capture[^].

Good luck,
—SA


这篇关于如何使用winform C#进行光学字符识别(ocr)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆