从GIF和JPEG阅读文本 [英] Read text from GIF and jpeg

查看:77
本文介绍了从GIF和JPEG阅读文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,我想从其中读取图像文件中的文本.我有Gif和Jpeg图像,其中包含段落,我希望我的应用程序从图像中读取那些段落.请让我知道如何用更少的代码以简单的方式完成它们?

i am developing an application where i want to read text from Image File. I am having Gif and Jpeg images with paragraphs in them , i want my application to read those paragraph from image. plz let me know how can I do them in easy way with less of code?

推荐答案

没有简单的方法-您将不得不使用OCR库: Google [ ^ ]可以提供帮助.
There is no simple way - you will have to use an OCR library: Google[^] can help.


也许格里夫(Griff)的答案需要澄清.
图像本身没有文字.图片中的文字应以人类可以识别的方式识别.
这是图像识别的问题.这个特定的应用领域非常具体,称为光学字符识别(OCR).尽管有这个通用名称,但现实生活中的引擎并不仅识别字符,而且还识别单词和句子,通常使用一些单词词典.看起来更复杂,但实际上更有效.

请参阅我过去的解决方案,其中包含以下参考: OCR软件 [ http://en.wikipedia.org/wiki/Optical_character_recognition [ http://en.wikipedia.org/wiki/List_of_optical_character_recognition_software [
Maybe the answer by Griff needs some clarification.

There is not text in images per se. The text in the image should be recognized the way human being can.
This is a matter if image recognition. This particular application field is very specific and called Optical Character Recognition (OCR). Despite this common name, real-life engines don''t merely recognize characters, they recognize words and sentences instead, usually using some word dictionary. It seems more complicated but in fact more effective.

Please see my past solution with a number of references: OCR Software[^].

See also:
http://en.wikipedia.org/wiki/Optical_character_recognition[^],
http://en.wikipedia.org/wiki/List_of_optical_character_recognition_software[^].

—SA


这篇关于从GIF和JPEG阅读文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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