R
R
RuslanCC2012-11-23 11:05:14
PHP
RuslanCC, 2012-11-23 11:05:14

PHP - circle found text on jpg

Hello!
The situation is as follows - there is a database with full texts of books.
The table with full texts has the following structure:
book_id, page_number, page text

All books also lie on the server and are divided into separate jpg pages.
After searching the database for any key phrase, I get the id of the pages that contain the desired query. And this request needs to be highlighted on the JPG itself, so that a person can immediately see the result.
Here is an example:
books.google.ru/books?hl=en&id=JngJuw9__xsC&q=myths#v=snippet&q=%D0%BC%D0%B8%D1%84%D1%8B&f=false

Any ideas how this can be implemented technically?
Drawing a translucent polygon on a JPG is no problem, but how do you find out the coordinates of the points inside which the phrase is located?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepanow, 2012-11-23
@Stepanow

Is there some kind of representation of the Word or TeX file type from which this jpeg is obtained, or is jpeg the source, and the text is the result of recognition?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question