识别图像 OCR 中的字母
我搜索没有结果。如果我复制其他主题,请删除,不要弄乱。 我对使用 C# 进行图像识别 OCR 有疑问,
我正在处理显示拼字游戏的图像。 首先,我将图像转换为灰度,设置阈值以仅找出黑色字母,然后我使用中值来避免字母周围的墙壁。
现在,如何开始获得能够识别字母的结尾函数呢?我现在应该以某种方式将“foreach”字母分开:-)还是开始识别?在开始识别之前我应该注意哪些问题?任何来源都将受到欢迎。 :-)
任何想法也会非常有帮助。
i searched with no result. If i copy other topic, please delete, not making mess.
I have question about image recognition OCR using C#
I am working on image which shows the scrabble.
First i converted image to grayscale, thresholded to find out only black letters and then I used median to avoid the walls around letters.
Now, how to start to get at the end function which will recognize letter? Should i somehow now separate 'foreach' letters :-) or just start recognizing ? On what problem should i take attention before start recognizing? Any sources will be welcome. :-)
Any idea will be also very helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,这是一个大而广泛的讨论......
如果你不想重新发明轮子,我建议你使用 Tesseract, C++ 中的开源 OCR,或 Tessnet2,它是.NET 对其进行包装。
我采用了与你相同的方法,即.NET中的灰度然后阈值等,然后我对Tesseract进行了一些修改(Tessnet2是Tesseract 2.0的包装器,而不是实际版本的3.x),以便为OCR输出提供良好的接口那么我就有了好的结果。
这是 Stack Overflow 上的另一个关于 OCR 和 Tesseract 的主题,其中描述了更多信息当然
,如果您想要使用 OCR 概念来让它们自己工作,这不是好方法:-)
Well, this is a big, vast discussion...
If you don't want to reinvent the wheel, I suggest you use Tesseract, an open source OCR in C++, or Tessnet2 which is a .NET wrapper around it.
I had the same approach as yours, i.e. grayscale then thresholds etc in .NET, then I adapted a bit Tesseract (Tessnet2 is a wrapper around Tesseract 2.0, not 3.x which is the actual version) to have a good interface for OCR output then I have good results.
Here is another subject on OCR and Tesseract on Stack Overflow which describes more precisely what it consists in.
Of course if what you want is play with OCR concepts to make them work by yourself, this is not the good way :-)