| 0 |
Here is an example of searching inside a book using the searching within a book using the API. |
0 |
Here is an example of searching inside a book using the searching within a book using the API. |
| ... |
|
... |
|
| 22 |
... |
22 |
... |
|
|
23 |
|
|
|
24 |
The reply includes page count, this is the number of pages that were passed to the OCR. |
|
|
25 |
|
|
|
26 |
Example of a match: |
|
|
27 |
|
|
|
28 |
{ |
|
|
29 |
"text": "The first Clinic on Library Applications of Data Processing was held at the Illini Union on the Urbana-Champaign campus of the University of Illinois, April 28 - May 1, 1963 under the sponsorship of the University of Illinois Graduate School of {{{Library}}} {{{Science}}}. Writing in the Foreword to the Clinic proceedings, Herbert Goldhor (1964) provides the rationale for sponsoring such a Clinic:", |
|
|
30 |
"par": [ |
|
|
31 |
{ |
|
|
32 |
"page": 14, "page_width": 2134, "page_height": 3328, |
|
|
33 |
"b": 1090, "t": 700, "r": 2024, "l": 192, |
|
|
34 |
"boxes": [ |
|
|
35 |
{ "r": 1560, "b": 957, "t": 899, "l": 1378 }, |
|
|
36 |
{ "r": 1767, "b": 957, "t": 899, "l": 1587 } |
|
|
37 |
] |
|
|
38 |
} |
|
|
39 |
] |
|
|
40 |
}, |
|
|
41 |
|
|
|
42 |
Each match contains a 'text' field. This is usually a complete paragraph. The matched words are surrounded by three braces either side, like {{{this}}}. |
|
|
43 |
|
|
|
44 |
The other field is called par, it contains details of every page that is part of this match. Paragraphs can cross pages. Each par object provides a page number, page width, height, and coordinates for the paragraph on the page. The boxes field field lists the coordinates to draw around each word or part of word in the match. |
|
|
45 |
|
|
|
46 |
Hyphenation means words can break across lines and across pages. |
|