Click here to Skip to main content
14,981,532 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
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.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Dec-11 12:26pm
   
Why? why?!
--SA

1 solution

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
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900