图像到文本的转换 [英] image to text convert

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

问题描述

如何在vb.net中将图像转换为文本.

How to convert Image to text in vb.net.

推荐答案

错误的问题.没有转换".
(那是什么,这种误用在CodeProject的Inquirers中看起来像是大流行.谁首先感染了它?!)

这称为OCR —光学字符识别,请参见 http://en.wikipedia.org/wiki/Optical_character_recognition [ ^ ],另请参见:http://en.wikipedia.org/wiki/List_of_optical_character_recognition_software [神经网络OCR [创建光纤使用神经网络的字符识别(OCR)应用程序 [ ^ ], OCR线检测 [ Unicode光学字符识别 [ ^ ]-只有大约60个CodeProject搜索结果中的那些才是您可以进一步开发的真实原创作品.您将需要选择基本方法,添加或改进训练,执行训练并存储训练结果,添加线的识别和对齐,全部组合等.

如果您成功并分享您的成果,那就太好了.

此外,您可以考虑使用Tesseract的.NET包装器(http://en.wikipedia.org/wiki/Tesseract_(软件) [ ^ ])称为Tessernet:
http://www.pixel-technology.com/freeware/tessnet2/ [
Incorrect Question. There is no "convert".
(What is that, this misuse of terminology looks pandemic in CodeProject''s Inquirers. Who infected it first?!)

This is called OCR — Optical Character Recognition, see http://en.wikipedia.org/wiki/Optical_character_recognition[^], see also: http://en.wikipedia.org/wiki/List_of_optical_character_recognition_software[^]
Quite a difficult topic.

If you can read C# code you can find some solutions you can use in VB.NET. It''s hard to find anything which is very good and complete at the same time.

Please look:
Neural Network OCR[^], Creating Optical Character Recognition (OCR) applications using Neural Networks[^], OCR Line Detection[^], Unicode Optical Character Recognition[^] — only those out of some 60 CodeProject search results are real original works you can further develop. You will need to select base method, add or improve training, perform training and store training results, add recognition and alignment of lines, put all together, etc.

It would be great if you have success and share your results.

Also, you can consider .NET wrapper for Tesseract (http://en.wikipedia.org/wiki/Tesseract_(software)[^]) called Tessernet:
http://www.pixel-technology.com/freeware/tessnet2/[^]. I tested it a bit. It is not so good, in my opinion.

—SA


如何尝试:

How about trying this :

Dim sr As New StreamReader("C:\Winter.jpg", Encoding.UTF8)
Dim text As String = sr.ReadToEnd()
Dim sw As New StreamWriter("C:\ImageText.txt", False, Encoding.UTF8)
sw.Write(text)
sw.Close()
sr.Close()



在此处找到了另一个解决方案:
http://www.codeproject.com /Answers/161703/How-to-convert-image-to-string.aspx#answer1 [



Found another solution here : http://www.codeproject.com/Answers/161703/How-to-convert-image-to-string.aspx#answer1[^]


这篇关于图像到文本的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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