C#中的图像处理工具 [英] Image processing tool in C#

查看:99
本文介绍了C#中的图像处理工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发一种软​​件,该软件可以在扫描特定图像时识别发票中的特定编号.因此,该过程需要标识发票编号,该发票编号打印在发票图像中.该发票编号具有唯一的格式,例如"BMAINV_xxxxxx".

I need to develop a software which can identify a specific number in an invoice, when that paticular image is scanned. So the process needs to identify the invoice number which is printed in the invoice image. This invoice number has a unique format like "BMAINV_xxxxxx". Any paticular way of doing this?

推荐答案

详细信息取决于您的要求以及您如何实现应用程序,但是仅OCR会为您提供图像上的所有文本.除非您将OCR应用于特定区域.我不确定所有OCR引擎是否都支持分区,但就我们而言,我们使用的引擎是否支持分区.
如果您知道发票编号的坐标,则可以对值进行硬编码.
如果您不知道坐标或它们的位置不固定,则至少有3个选项:
1)您可以解析整个文本并检查"BMAINV",然后在其后取下一个.
2)使用表格识别功能搜索与发票编号相关的位置固定的附近标记.
3)例如,如果图像包含单词发票编号:XXXXX",则使用相关性(在较大的图像中搜索图像),裁剪包含发票编号"的小区域并搜索它,然后在其上定义一个区域发票编号然后对其进行OCR.
The details depend on your requirements and how you want to implement your application but OCR alone will give you all the text on the image unless you apply the OCR to specific region. I''m NOT sure if all OCR engines support zoning or not but in our case, the engine we used did support zones.
If you know the co-ordinates of the invoice number, you can hardcode the values.
If you don''t know the co-ordinates or they are not fixed in position, you have at least 3 options:
1) You can parse the whole text and check for "BMAINV" then take the next after it.
2) Use Forms recognition to search for a nearby mark that has a fixed position in relevance to the invoice number.
3) Use correlation (Search for an image inside a larger image) for example, if the image contains the words "Invoice number: XXXXX", crop a small region that contains "Invoice number" and search for it and then define a zone on the invoice number then OCR it.


我想知道,您必须使用OCR SDK.您会发现很多
I wonder, you''ve to use the OCR SDK. You''ll find plenty of them here.


看看这个:神经网络OCR [ ^ ]
和该作者的其他文章,可能会给您一个想法.
还请看一下:使用内核判别分析的手写识别 [ ^ ]
Take a look at this:Neural Network OCR[^]
and other articles from this author, it may give you an idea.
Also take a look at this: Handwriting Recognition using Kernel Discriminant Analysis[^]


这篇关于C#中的图像处理工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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