简体   繁体   English

如何使用EmguCV从led密码匙获取数字?

[英]How can get digits from led secreen with EmguCV?

I am working on a project. 我正在做一个项目。 Which captures frame with cam and detect characters with using OCR. 它使用cam捕获帧并使用OCR检测字符。 When i developed this project i benefited from EMGU CV's standart "OCR" and "Capture" examples. 当我开发此项目时,我受益于EMGU CV的标准“ OCR”和“ Capture”示例。 Now, i can capture frame but i did'nt get real OCR result yet. 现在,我可以捕获帧了,但是我还没有得到真正的OCR结果。 Do you suggest an example or method for doing this. 您是否建议执行此操作的示例或方法。

PS my english is not enough for reading so technical article. 附注:我的英语不足以阅读如此技术文章。 Because of this reason, if your suggestion contains the code, that will be good for me. 因此,如果您的建议中包含代码,那对我来说将是一件好事。

Thank very much for your help, already now. 现在已经非常感谢您的帮助。 Example, frame sources like below; 例如,框架源如下:

在此处输入图片说明在此处输入图片说明

I am sorry but I have to refer you to an article: http://www.codeproject.com/Articles/196168/Contour-Analysis-for-Image-Recognition-in-C 抱歉,我必须转介您前往一篇文章: http : //www.codeproject.com/Articles/196168/Contour-Analysis-for-Image-Recognition-in-C

But don't read it, just download the demo application with the code. 但是请不要阅读,只需下载带有代码的演示应用程序即可。 Run the demo and install an LED font on your computer. 运行演示并在计算机上安装LED字体。

If this works for your project, analyze the code and move accordingly. 如果这适用于您的项目,请分析代码并进行相应的移动。

If your images will always be the same, you could use another OCR engine, this being Tesseract . 如果您的图像始终相同,则可以使用另一个OCR引擎,即Tesseract This however depends on your images, since different images will require the Neural Network different training patterns. 但是,这取决于您的图像,因为不同的图像将需要神经网络不同的训练模式。 So, if you only have two types of images as shown above, you might be able to get away with it with one or two instances of the OCR engine (one for each format). 因此,如果您只有两种类型的图像(如上所示),则可以使用一个或两个OCR引擎实例(每种格式一个)来解决它。 That being said however, things could get difficult once more image patterns are thrown in. 话虽这么说,一旦投入更多的图像模式,事情就会变得困难。

Since EmguCV is a wrapper for OpenCV, you could use the library for some image processing before passing it to the OCR. 由于EmguCV是OpenCV的包装程序,因此您可以在将该库传递给OCR之前使用该库进行一些图像处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM