如何获取文本在Tiff图像上的位置. [英] How to get Position of Text on Tiff image.

查看:45
本文介绍了如何获取文本在Tiff图像上的位置.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个asp.net应用程序.
就像学生注册表格一样.所以字段是学生姓名,地址等.
我有这种形式的tiff图片,我的aspx页面包含名称",地址"等字段.
所以输出将显示2个部分..一侧的tif图像和一侧的aspx页面,因此当我将光标移动到aspx页面上的Name时,我要突出显示将显示Name单词的tiff image部分.
因此,如何在tiff图像上获取文本的位置,以便突出显示该图像.

I have created one asp.net application .
like student registraion form. so the fields are Student name, address etc.
i have tiff images of that form and my aspx page contain Name, Address etc fields .
so the output will display 2 parts.. oneside tif image and one side aspx page so when i move the cursor on Name on aspx page i want to highlight the tiff image portion where Name word will display .
so how to get position of text on tiff image so that i will highlight that.

推荐答案

您并不真正了解您想要什么.您了解吗,TIFF图像中没有任何文字?您了解吗,阅读并解析后没有TIFF图像,只有位图;它的类型没关系吗?

没有文本,只有不同颜色的像素,不能或不能像人类一样将其解释为文本.这样做是图像识别的问题,而处理文本是它的一个非常具体的部分,称为 Optical Image Recognition (OCR).尽管有名称,但OCR引擎通常不识别字符,而是使用某些单词词典识别单词或短语.它看起来更复杂,但实际上更有效.这一点都不容易.而且,目前我还不知道真正好的开源完整且功能齐全的产品,该产品可以轻松地嵌入到您的应用程序中并产生良好的效果.

参见:
http://en.wikipedia.org/wiki/Optical_character_recognition [ OCR软件 [
You don''t really understand what do you want. Do you understand, that there are no any texts in a TIFF image? Do you understand, there is no a TIFF image after you read and parser it, there is only a bitmap; the type of it does not matter?

There is no text, there are only pixels of different color, which can or can not be interpreted as text the way human being do. Doing it is a problem of image recognition, and working with texts is a very specific part of it called Optical Image Recognition (OCR). Despite the name, the OCR engines usually do not recognize characters, but rather words or phrases using some word dictionary. It looks more complex but much more effective in practice. This is not easy at all. Moreover, at this moment I don''t know really good open-source complete and fully functional product which could be easily embedded in your application and would produce good results.

See:
http://en.wikipedia.org/wiki/Optical_character_recognition[^],
OCR Software[^].

I have no idea how you ended up having text data dissolved in the bitmap and not having it directly, but it looks like you are trying to do something totally wrong.

—SA


这篇关于如何获取文本在Tiff图像上的位置.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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