-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patha00008_source.html
194 lines (192 loc) · 103 KB
/
a00008_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tesseract: /usr/src/tesseract-ocr.master/src/api/baseapi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">tesseract
 <span id="projectnumber">4.0.0-1-g2a2b</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00008_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">baseapi.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="a00008.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// File: baseapi.h</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// Description: Simple API for calling tesseract.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// Author: Ray Smith</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// (C) Copyright 2006, Google Inc.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">//</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef TESSERACT_API_BASEAPI_H_</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#define TESSERACT_API_BASEAPI_H_</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <cstdio></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// To avoid collision with other typenames include the ABSOLUTE MINIMUM</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// complexity of includes here. Use forward declarations wherever possible</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// and hide includes of complex types in baseapi.cpp.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "tess_version.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="a00002.html">apitypes.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="a00128.html">pageiterator.h</a>"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="a00560.html">platform.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="a00380.html">publictypes.h</a>"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="a00173.html">resultiterator.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="a00575.html">serialis.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="a00587.html">tesscallback.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="a00206.html">thresholder.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="a00605.html">unichar.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="a02182.html"> 37</a></span> <span class="keyword">template</span> <<span class="keyword">typename</span> T> <span class="keyword">class </span><a class="code" href="a02182.html">GenericVector</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">class </span><a class="code" href="a02530.html">PAGE_RES</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">class </span><a class="code" href="a02546.html">PAGE_RES_IT</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">class </span><a class="code" href="a02522.html">ParagraphModel</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">struct </span><a class="code" href="a02370.html">BlamerBundle</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">class </span>BLOCK_LIST;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">class </span><a class="code" href="a02510.html">DENORM</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">class </span><a class="code" href="a02498.html">MATRIX</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">class </span><a class="code" href="a02526.html">ROW</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">class </span><a class="code" href="a02834.html">STRING</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">class </span><a class="code" href="a02638.html">WERD</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">struct </span>Pix;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">struct </span>Box;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">struct </span>Pixa;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">struct </span>Boxa;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">class </span><a class="code" href="a02786.html">ETEXT_DESC</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">struct </span><a class="code" href="a02266.html">OSResults</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">class </span><a class="code" href="a02610.html">TBOX</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">class </span><a class="code" href="a03950.html">UNICHARSET</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">class </span>WERD_CHOICE_LIST;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="a00008.html#af803a54b0e7e7985ebd5bdf9d54424e0"> 58</a></span> <span class="keyword">struct </span><a class="code" href="a04130.html">INT_FEATURE_STRUCT</a>;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">typedef</span> <a class="code" href="a04130.html">INT_FEATURE_STRUCT</a> *<a class="code" href="a00008.html#af803a54b0e7e7985ebd5bdf9d54424e0">INT_FEATURE</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">struct </span><a class="code" href="a02398.html">TBLOB</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">namespace </span><a class="code" href="a01629.html">tesseract</a> {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">class </span>Dawg;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">class </span>Dict;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">class </span>EquationDetect;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">class </span>PageIterator;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">class </span>LTRResultIterator;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">class </span>ResultIterator;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">class </span>MutableIterator;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">class </span><a class="code" href="a00014.html#a79b401fe19433464a13b416108deb755">TessResultRenderer</a>;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">class </span>Tesseract;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">class </span>Trie;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">class </span>Wordrec;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="a01629.html#a75942705a59f93c72298f0c0444f9325"> 76</a></span> <span class="keyword">typedef</span> int (<a class="code" href="a04290.html">Dict</a>::*<a class="code" href="a01629.html#a75942705a59f93c72298f0c0444f9325">DictFunc</a>)(<span class="keywordtype">void</span>* void_dawg_args,</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">const</span> <a class="code" href="a03950.html">UNICHARSET</a>& unicharset,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="a00605.html#afedceee7ea132dae3d224db2cf8b5618">UNICHAR_ID</a> unichar_id, <span class="keywordtype">bool</span> word_end) <span class="keyword">const</span>;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="a01629.html#ad7ebf88af7dcdd155deb8655ba5991ff"> 79</a></span> <span class="keyword">typedef</span> double (<a class="code" href="a04290.html">Dict</a>::*<a class="code" href="a01629.html#ad7ebf88af7dcdd155deb8655ba5991ff">ProbabilityInContextFunc</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span>* lang,</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* context,</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">int</span> context_bytes,</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a00767.html#a2a4b69f9a2827dc98bc4cbc233118865afa40ef3af4fea0001b535318130960b2">character</a>,</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">int</span> character_bytes);</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="a01629.html#a57e9ea37415c443dc4f66d72b3a1d88b"> 84</a></span> <span class="keyword">typedef</span> float (<a class="code" href="a04290.html">Dict</a>::*<a class="code" href="a01629.html#a57e9ea37415c443dc4f66d72b3a1d88b">ParamsModelClassifyFunc</a>)(</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *lang, <span class="keywordtype">void</span> *path);</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="a01629.html#a0c8529ffdf3ba5c8d219e377c13b1288"> 86</a></span> <span class="keyword">typedef</span> void (<a class="code" href="a04866.html">Wordrec</a>::*<a class="code" href="a01629.html#a0c8529ffdf3ba5c8d219e377c13b1288">FillLatticeFunc</a>)(<span class="keyword">const</span> <a class="code" href="a02498.html">MATRIX</a> &ratings,</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">const</span> WERD_CHOICE_LIST &best_choices,</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">const</span> <a class="code" href="a03950.html">UNICHARSET</a> &unicharset,</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="a02370.html">BlamerBundle</a> *blamer_bundle);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">typedef</span> <a class="code" href="a03050.html">TessCallback4<const UNICHARSET &, int, PageIterator *, Pix *></a></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="a01629.html#a2b782734f04c669f264e8675aad68d9c"> 91</a></span>  <a class="code" href="a01629.html#a2b782734f04c669f264e8675aad68d9c">TruthCallback</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="a02186.html"> 101</a></span> <span class="keyword">class </span><a class="code" href="a00560.html#a86e51270628c53ce7e2c23b1c2b4490e">TESS_API</a> <a class="code" href="a02186.html">TessBaseAPI</a> {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="a00014.html#a47436d31525552f08492b8dcdfc12755">TessBaseAPI</a>();</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">virtual</span> ~<a class="code" href="a02186.html">TessBaseAPI</a>();</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Version();</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">static</span> <span class="keywordtype">size_t</span> getOpenCLDevice(<span class="keywordtype">void</span> **device);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> CatchSignals();</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">void</span> SetInputName(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* GetInputName();</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// Takes ownership of the input pix.</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordtype">void</span> SetInputImage(Pix *pix);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  Pix* GetInputImage();</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">int</span> GetSourceYResolution();</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* GetDatapath();</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordtype">void</span> SetOutputName(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordtype">bool</span> SetVariable(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">bool</span> SetDebugVariable(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">bool</span> GetIntVariable(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> *value) <span class="keyword">const</span>;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordtype">bool</span> GetBoolVariable(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">bool</span> *value) <span class="keyword">const</span>;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordtype">bool</span> GetDoubleVariable(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">double</span> *value) <span class="keyword">const</span>;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *GetStringVariable(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordtype">void</span> PrintVariables(FILE *fp) <span class="keyword">const</span>;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordtype">bool</span> GetVariableAsString(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="a02834.html">STRING</a> *val);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordtype">int</span> Init(<span class="keyword">const</span> <span class="keywordtype">char</span>* datapath, <span class="keyword">const</span> <span class="keywordtype">char</span>* language, <a class="code" href="a01629.html#a04550a0ed1279562027bf2fc92c421ae">OcrEngineMode</a> mode,</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordtype">char</span> **configs, <span class="keywordtype">int</span> configs_size,</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">const</span> <a class="code" href="a02182.html">GenericVector<STRING></a> *vars_vec,</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keyword">const</span> <a class="code" href="a02182.html">GenericVector<STRING></a> *vars_values,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordtype">bool</span> set_only_non_debug_params);</div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="a02186.html#a6d0956a66158ead4e3a86c7f50dad56e"> 231</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02186.html#a6d0956a66158ead4e3a86c7f50dad56e">Init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* datapath, <span class="keyword">const</span> <span class="keywordtype">char</span>* language, <a class="code" href="a01629.html#a04550a0ed1279562027bf2fc92c421ae">OcrEngineMode</a> oem) {</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">return</span> Init(datapath, language, oem, <span class="keyword">nullptr</span>, 0, <span class="keyword">nullptr</span>, <span class="keyword">nullptr</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="a02186.html#a965ef2ff51c440756519a3d6f755f34f"> 234</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02186.html#a965ef2ff51c440756519a3d6f755f34f">Init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* datapath, <span class="keyword">const</span> <span class="keywordtype">char</span>* language) {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> Init(datapath, language, <a class="code" href="a01629.html#a04550a0ed1279562027bf2fc92c421aeae7376c1e8d55b9d13e75c639a6930159">OEM_DEFAULT</a>, <span class="keyword">nullptr</span>, 0, <span class="keyword">nullptr</span>, <span class="keyword">nullptr</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="comment">// In-memory version reads the traineddata file directly from the given</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="comment">// data[data_size] array, and/or reads data via a FileReader.</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordtype">int</span> Init(<span class="keyword">const</span> <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> data_size, <span class="keyword">const</span> <span class="keywordtype">char</span>* language,</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="a01629.html#a04550a0ed1279562027bf2fc92c421ae">OcrEngineMode</a> mode, <span class="keywordtype">char</span>** configs, <span class="keywordtype">int</span> configs_size,</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">const</span> <a class="code" href="a02182.html">GenericVector<STRING></a>* vars_vec,</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keyword">const</span> <a class="code" href="a02182.html">GenericVector<STRING></a>* vars_values,</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordtype">bool</span> set_only_non_debug_params, <a class="code" href="a01629.html#a689189939684bc6f10754a77a4c6c569">FileReader</a> reader);</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* GetInitLanguagesAsString() <span class="keyword">const</span>;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordtype">void</span> GetLoadedLanguagesAsVector(<a class="code" href="a02182.html">GenericVector<STRING></a>* langs) <span class="keyword">const</span>;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordtype">void</span> GetAvailableLanguagesAsVector(<a class="code" href="a02182.html">GenericVector<STRING></a>* langs) <span class="keyword">const</span>;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordtype">int</span> InitLangMod(<span class="keyword">const</span> <span class="keywordtype">char</span>* datapath, <span class="keyword">const</span> <span class="keywordtype">char</span>* language);</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordtype">void</span> InitForAnalysePage();</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordtype">void</span> ReadConfigFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename);</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordtype">void</span> ReadDebugConfigFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordtype">void</span> SetPageSegMode(<a class="code" href="a01629.html#a338d4c8b5d497b5ec3e6e4269d8ac66a">PageSegMode</a> mode);</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> </div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="code" href="a01629.html#a338d4c8b5d497b5ec3e6e4269d8ac66a">PageSegMode</a> GetPageSegMode() <span class="keyword">const</span>;</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordtype">char</span>* TesseractRect(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* imagedata,</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordtype">int</span> bytes_per_pixel, <span class="keywordtype">int</span> bytes_per_line,</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordtype">int</span> left, <span class="keywordtype">int</span> top, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordtype">void</span> ClearAdaptiveClassifier();</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="comment">/* @{ */</span></div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordtype">void</span> SetImage(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* imagedata, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height,</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordtype">int</span> bytes_per_pixel, <span class="keywordtype">int</span> bytes_per_line);</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <span class="keywordtype">void</span> SetImage(Pix* pix);</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordtype">void</span> SetSourceResolution(<span class="keywordtype">int</span> ppi);</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keywordtype">void</span> SetRectangle(<span class="keywordtype">int</span> left, <span class="keywordtype">int</span> top, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> </div><div class="line"><a name="l00376"></a><span class="lineno"><a class="line" href="a01625.html#ga73e6a99f5f09aaf26dc23f623a813143"> 376</a></span>  <span class="keywordtype">void</span> <a class="code" href="a01625.html#ga73e6a99f5f09aaf26dc23f623a813143">SetThresholder</a>(<a class="code" href="a02362.html">ImageThresholder</a>* thresholder) {</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keyword">delete</span> thresholder_;</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  thresholder_ = thresholder;</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  ClearResults();</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  }</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  Pix* GetThresholdedImage();</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  Boxa* GetRegions(Pixa** pixa);</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> </div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  Boxa* GetTextlines(<span class="keyword">const</span> <span class="keywordtype">bool</span> raw_image, <span class="keyword">const</span> <span class="keywordtype">int</span> raw_padding,</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  Pixa** pixa, <span class="keywordtype">int</span>** blockids, <span class="keywordtype">int</span>** paraids);</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="comment">/*</span></div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span> <span class="comment"> Helper method to extract from the thresholded image. (most common usage)</span></div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="comment"> */</span></div><div class="line"><a name="l00412"></a><span class="lineno"><a class="line" href="a01625.html#ga3f7d322f92449543044d594147f8b992"> 412</a></span>  Boxa* <a class="code" href="a01625.html#ga3f7d322f92449543044d594147f8b992">GetTextlines</a>(Pixa** pixa, <span class="keywordtype">int</span>** blockids) {</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">return</span> GetTextlines(<span class="keyword">false</span>, 0, pixa, blockids, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  }</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  Boxa* GetStrips(Pixa** pixa, <span class="keywordtype">int</span>** blockids);</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span> </div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  Boxa* GetWords(Pixa** pixa);</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span> </div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  Boxa* GetConnectedComponents(Pixa** cc);</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  Boxa* GetComponentImages(<span class="keyword">const</span> <a class="code" href="a01629.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level,</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> text_only, <span class="keyword">const</span> <span class="keywordtype">bool</span> raw_image,</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> raw_padding,</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  Pixa** pixa, <span class="keywordtype">int</span>** blockids, <span class="keywordtype">int</span>** paraids);</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="comment">// Helper function to get binary images with no padding (most common usage).</span></div><div class="line"><a name="l00461"></a><span class="lineno"><a class="line" href="a01625.html#gad74ae1266a5299734ec6f5225b6cb5c1"> 461</a></span>  Boxa* <a class="code" href="a01625.html#gad74ae1266a5299734ec6f5225b6cb5c1">GetComponentImages</a>(<span class="keyword">const</span> <a class="code" href="a01629.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level,</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> text_only,</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  Pixa** pixa, <span class="keywordtype">int</span>** blockids) {</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">return</span> GetComponentImages(level, text_only, <span class="keyword">false</span>, 0, pixa, blockids, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  }</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordtype">int</span> GetThresholdedImageScaleFactor() <span class="keyword">const</span>;</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span> </div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="a02278.html">PageIterator</a>* AnalyseLayout();</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <a class="code" href="a02278.html">PageIterator</a>* AnalyseLayout(<span class="keywordtype">bool</span> merge_similar_words);</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <span class="keywordtype">int</span> Recognize(<a class="code" href="a02786.html">ETEXT_DESC</a>* monitor);</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span> </div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="preprocessor"> #ifndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordtype">int</span> RecognizeForChopTest(<a class="code" href="a02786.html">ETEXT_DESC</a>* monitor);</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span> <span class="preprocessor"> #endif</span></div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordtype">bool</span> ProcessPages(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keyword">const</span> <span class="keywordtype">char</span>* retry_config,</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordtype">int</span> timeout_millisec, <a class="code" href="a02190.html">TessResultRenderer</a>* renderer);</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="comment">// Does the real work of ProcessPages.</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keywordtype">bool</span> ProcessPagesInternal(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keyword">const</span> <span class="keywordtype">char</span>* retry_config,</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="keywordtype">int</span> timeout_millisec, <a class="code" href="a02190.html">TessResultRenderer</a>* renderer);</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span> </div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordtype">bool</span> ProcessPage(Pix* pix, <span class="keywordtype">int</span> page_index, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename,</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* retry_config, <span class="keywordtype">int</span> timeout_millisec,</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <a class="code" href="a02190.html">TessResultRenderer</a>* renderer);</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <a class="code" href="a02346.html">ResultIterator</a>* GetIterator();</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span> </div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <a class="code" href="a02258.html">MutableIterator</a>* GetMutableIterator();</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span> </div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <span class="keywordtype">char</span>* GetUTF8Text();</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span> </div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keywordtype">char</span>* GetHOCRText(<a class="code" href="a02786.html">ETEXT_DESC</a>* monitor, <span class="keywordtype">int</span> page_number);</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span> </div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="keywordtype">char</span>* GetHOCRText(<span class="keywordtype">int</span> page_number);</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span> </div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <span class="keywordtype">char</span>* GetTSVText(<span class="keywordtype">int</span> page_number);</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> </div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <span class="keywordtype">char</span>* GetBoxText(<span class="keywordtype">int</span> page_number);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span> </div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  <span class="keywordtype">char</span>* GetUNLVText();</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span> </div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  <span class="keywordtype">bool</span> DetectOrientationScript(<span class="keywordtype">int</span>* orient_deg, <span class="keywordtype">float</span>* orient_conf,</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>** script_name, <span class="keywordtype">float</span>* script_conf);</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span> </div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  <span class="keywordtype">char</span>* GetOsdText(<span class="keywordtype">int</span> page_number);</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span> </div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  <span class="keywordtype">int</span> MeanTextConf();</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <span class="keywordtype">int</span>* AllWordConfidences();</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span> </div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span> <span class="preprocessor">#ifndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span> </div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  <span class="keywordtype">bool</span> AdaptToWordStr(<a class="code" href="a01629.html#a338d4c8b5d497b5ec3e6e4269d8ac66a">PageSegMode</a> mode, <span class="keyword">const</span> <span class="keywordtype">char</span>* wordstr);</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="preprocessor">#endif // ndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span> </div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="keywordtype">void</span> Clear();</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> </div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="keywordtype">void</span> End();</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span> </div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> ClearPersistentCache();</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span> </div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="keywordtype">int</span> IsValidWord(<span class="keyword">const</span> <span class="keywordtype">char</span> *word);</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  <span class="comment">// Returns true if utf8_character is defined in the UniCharset.</span></div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  <span class="keywordtype">bool</span> IsValidCharacter(<span class="keyword">const</span> <span class="keywordtype">char</span> *utf8_character);</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span> </div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span> </div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  <span class="keywordtype">bool</span> GetTextDirection(<span class="keywordtype">int</span>* out_offset, <span class="keywordtype">float</span>* out_slope);</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span> </div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="keywordtype">void</span> SetDictFunc(<a class="code" href="a01629.html#a75942705a59f93c72298f0c0444f9325">DictFunc</a> f);</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span> </div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  <span class="keywordtype">void</span> SetProbabilityInContextFunc(<a class="code" href="a01629.html#ad7ebf88af7dcdd155deb8655ba5991ff">ProbabilityInContextFunc</a> f);</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span> </div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <span class="keywordtype">bool</span> DetectOS(<a class="code" href="a02266.html">OSResults</a>*);</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span> </div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  <span class="keywordtype">void</span> GetBlockTextOrientations(<span class="keywordtype">int</span>** block_orientation,</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  <span class="keywordtype">bool</span>** vertical_writing);</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span> </div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span> </div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span> <span class="preprocessor"> #ifndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span> </div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  <span class="keywordtype">void</span> SetFillLatticeFunc(<a class="code" href="a01629.html#a0c8529ffdf3ba5c8d219e377c13b1288">FillLatticeFunc</a> f);</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span> </div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  BLOCK_LIST* FindLinesCreateBlockList();</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span> </div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> DeleteBlockList(BLOCK_LIST* block_list);</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span> </div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  <span class="keyword">static</span> <a class="code" href="a02526.html">ROW</a> *MakeTessOCRRow(<span class="keywordtype">float</span> <a class="code" href="a00767.html#a2a4b69f9a2827dc98bc4cbc233118865a83297de004f4e58b9be2108c6cd08a23">baseline</a>, <span class="keywordtype">float</span> xheight,</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  <span class="keywordtype">float</span> descender, <span class="keywordtype">float</span> ascender);</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span> </div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  <span class="keyword">static</span> <a class="code" href="a02398.html">TBLOB</a> *MakeTBLOB(Pix *pix);</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span> </div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> NormalizeTBLOB(<a class="code" href="a02398.html">TBLOB</a> *tblob, <a class="code" href="a02526.html">ROW</a> *row, <span class="keywordtype">bool</span> numeric_mode);</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span> </div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  <span class="keywordtype">void</span> GetFeaturesForBlob(<a class="code" href="a02398.html">TBLOB</a>* blob, <a class="code" href="a04130.html">INT_FEATURE_STRUCT</a>* int_features,</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  <span class="keywordtype">int</span>* num_features, <span class="keywordtype">int</span>* feature_outline_index);</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span> </div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <span class="keyword">static</span> <a class="code" href="a02526.html">ROW</a>* FindRowForBox(BLOCK_LIST* blocks, <span class="keywordtype">int</span> left, <span class="keywordtype">int</span> top,</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <span class="keywordtype">int</span> right, <span class="keywordtype">int</span> bottom);</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span> </div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  <span class="keywordtype">void</span> RunAdaptiveClassifier(<a class="code" href="a02398.html">TBLOB</a>* blob,</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <span class="keywordtype">int</span> num_max_matches,</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="keywordtype">int</span>* unichar_ids,</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  <span class="keywordtype">float</span>* ratings,</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  <span class="keywordtype">int</span>* num_matches_returned);</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span> <span class="preprocessor">#endif // ndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span> </div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* GetUnichar(<span class="keywordtype">int</span> unichar_id);</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span> </div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span>  <span class="keyword">const</span> <a class="code" href="a04258.html">Dawg</a> *GetDawg(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span> </div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  <span class="keywordtype">int</span> NumDawgs() <span class="keyword">const</span>;</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span> </div><div class="line"><a name="l00783"></a><span class="lineno"><a class="line" href="a01625.html#gac16fdadc30b12935b793be4a42ad8448"> 783</a></span>  <a class="code" href="a02358.html">Tesseract</a>* <a class="code" href="a01625.html#gac16fdadc30b12935b793be4a42ad8448">tesseract</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> tesseract_; }</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span> </div><div class="line"><a name="l00785"></a><span class="lineno"><a class="line" href="a01625.html#ga97d470c76d2ff9580ac70e547eb8be99"> 785</a></span>  <a class="code" href="a01629.html#a04550a0ed1279562027bf2fc92c421ae">OcrEngineMode</a> <a class="code" href="a01625.html#ga97d470c76d2ff9580ac70e547eb8be99">oem</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> last_oem_requested_; }</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span> </div><div class="line"><a name="l00787"></a><span class="lineno"><a class="line" href="a01625.html#ga43810a084b5482d0731611513c0a9e16"> 787</a></span>  <span class="keywordtype">void</span> <a class="code" href="a01625.html#ga43810a084b5482d0731611513c0a9e16">InitTruthCallback</a>(<a class="code" href="a03050.html">TruthCallback</a> *cb) { truth_cb_ = cb; }</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span> </div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  <span class="keywordtype">void</span> set_min_orientation_margin(<span class="keywordtype">double</span> margin);</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  <span class="comment">/* @} */</span></div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span> </div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span> </div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keywordtype">bool</span> InternalSetImage();</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span> </div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> Threshold(Pix** pix);</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span> </div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keywordtype">int</span> FindLines();</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span> </div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  <span class="keywordtype">void</span> ClearResults();</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span> </div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <a class="code" href="a02250.html">LTRResultIterator</a>* GetLTRIterator();</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span> </div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keywordtype">int</span> TextLength(<span class="keywordtype">int</span>* blob_count);</div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span> </div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keywordtype">void</span> <a class="code" href="a01629.html#a65cdf27a58055de3324687ee56b1dcba">DetectParagraphs</a>(<span class="keywordtype">bool</span> after_text_recognition);</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span> </div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span> <span class="preprocessor"> #ifndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span> </div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  <span class="comment">/* @{ */</span></div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span> </div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keywordtype">void</span> AdaptToCharacter(<span class="keyword">const</span> <span class="keywordtype">char</span> *unichar_repr,</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="keywordtype">int</span> length,</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  <span class="keywordtype">float</span> <a class="code" href="a00767.html#a2a4b69f9a2827dc98bc4cbc233118865a83297de004f4e58b9be2108c6cd08a23">baseline</a>,</div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  <span class="keywordtype">float</span> xheight,</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  <span class="keywordtype">float</span> descender,</div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  <span class="keywordtype">float</span> ascender);</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span> </div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <a class="code" href="a02530.html">PAGE_RES</a>* RecognitionPass1(BLOCK_LIST* block_list);</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span> </div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <a class="code" href="a02530.html">PAGE_RES</a>* RecognitionPass2(BLOCK_LIST* block_list,</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  <a class="code" href="a02530.html">PAGE_RES</a>* pass1_result);</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span> </div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keyword">static</span> <span class="keywordtype">int</span> TesseractExtractResult(<span class="keywordtype">char</span>** text,</div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  <span class="keywordtype">int</span>** lengths,</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  <span class="keywordtype">float</span>** costs,</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  <span class="keywordtype">int</span>** x0,</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  <span class="keywordtype">int</span>** y0,</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  <span class="keywordtype">int</span>** x1,</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  <span class="keywordtype">int</span>** y1,</div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  <a class="code" href="a02530.html">PAGE_RES</a>* page_res);</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span> </div><div class="line"><a name="l00865"></a><span class="lineno"><a class="line" href="a01626.html#ga01df6300434b0f792dcc9d257e0ca0b5"> 865</a></span>  <a class="code" href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keyword">const</span> <a class="code" href="a02530.html">PAGE_RES</a>* <a class="code" href="a01626.html#ga01df6300434b0f792dcc9d257e0ca0b5">GetPageRes</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> page_res_; }</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  <span class="comment">/* @} */</span></div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span> <span class="preprocessor">#endif // ndef DISABLED_LEGACY_ENGINE</span></div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span> </div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00870"></a><span class="lineno"><a class="line" href="a02186.html#a247f50792f581df05afe336a2aeda402"> 870</a></span>  <a class="code" href="a02358.html">Tesseract</a>* <a class="code" href="a02186.html#a247f50792f581df05afe336a2aeda402">tesseract_</a>; </div><div class="line"><a name="l00871"></a><span class="lineno"><a class="line" href="a02186.html#ad7b44f5b470c9e04289c348d82726b27"> 871</a></span>  <a class="code" href="a02358.html">Tesseract</a>* <a class="code" href="a02186.html#ad7b44f5b470c9e04289c348d82726b27">osd_tesseract_</a>; </div><div class="line"><a name="l00872"></a><span class="lineno"><a class="line" href="a02186.html#a0222d0f645909860d13f71c078008133"> 872</a></span>  <a class="code" href="a02246.html">EquationDetect</a>* <a class="code" href="a02186.html#a0222d0f645909860d13f71c078008133">equ_detect_</a>; </div><div class="line"><a name="l00873"></a><span class="lineno"><a class="line" href="a02186.html#a83549f01f06c140e14dad3f8c025d885"> 873</a></span>  <a class="code" href="a01629.html#a689189939684bc6f10754a77a4c6c569">FileReader</a> <a class="code" href="a02186.html#a83549f01f06c140e14dad3f8c025d885">reader_</a>; </div><div class="line"><a name="l00874"></a><span class="lineno"><a class="line" href="a02186.html#a9d93e1d92ca230ae02b81d44bc88a55c"> 874</a></span>  <a class="code" href="a02362.html">ImageThresholder</a>* <a class="code" href="a02186.html#a9d93e1d92ca230ae02b81d44bc88a55c">thresholder_</a>; </div><div class="line"><a name="l00875"></a><span class="lineno"><a class="line" href="a02186.html#a06084d66b830a388515663761d842041"> 875</a></span>  <a class="code" href="a02182.html">GenericVector<ParagraphModel *></a>* <a class="code" href="a02186.html#a06084d66b830a388515663761d842041">paragraph_models_</a>;</div><div class="line"><a name="l00876"></a><span class="lineno"><a class="line" href="a02186.html#ac22c36258b0cd727188505a9a1dbc7e1"> 876</a></span>  BLOCK_LIST* <a class="code" href="a02186.html#ac22c36258b0cd727188505a9a1dbc7e1">block_list_</a>; </div><div class="line"><a name="l00877"></a><span class="lineno"><a class="line" href="a02186.html#a12dda612630eba40e15f9d0b9955a04c"> 877</a></span>  <a class="code" href="a02530.html">PAGE_RES</a>* <a class="code" href="a02186.html#a12dda612630eba40e15f9d0b9955a04c">page_res_</a>; </div><div class="line"><a name="l00878"></a><span class="lineno"><a class="line" href="a02186.html#a4690919aa9d4eabda36bdefdaadf7ac9"> 878</a></span>  <a class="code" href="a02834.html">STRING</a>* <a class="code" href="a02186.html#a4690919aa9d4eabda36bdefdaadf7ac9">input_file_</a>; </div><div class="line"><a name="l00879"></a><span class="lineno"><a class="line" href="a02186.html#a22a0c520bc88e2d80fb8b6a10b7caba1"> 879</a></span>  <a class="code" href="a02834.html">STRING</a>* <a class="code" href="a02186.html#a22a0c520bc88e2d80fb8b6a10b7caba1">output_file_</a>; </div><div class="line"><a name="l00880"></a><span class="lineno"><a class="line" href="a02186.html#ad7c3d4ead7b9c8e27e45e710e5407913"> 880</a></span>  <a class="code" href="a02834.html">STRING</a>* <a class="code" href="a02186.html#ad7c3d4ead7b9c8e27e45e710e5407913">datapath_</a>; </div><div class="line"><a name="l00881"></a><span class="lineno"><a class="line" href="a02186.html#a74a291190aa0bbf90b57f678b1fb0a5c"> 881</a></span>  <a class="code" href="a02834.html">STRING</a>* <a class="code" href="a02186.html#a74a291190aa0bbf90b57f678b1fb0a5c">language_</a>; </div><div class="line"><a name="l00882"></a><span class="lineno"><a class="line" href="a02186.html#af9d4095a569fbf8687cefc005d2f58ee"> 882</a></span>  <a class="code" href="a01629.html#a04550a0ed1279562027bf2fc92c421ae">OcrEngineMode</a> <a class="code" href="a02186.html#af9d4095a569fbf8687cefc005d2f58ee">last_oem_requested_</a>; </div><div class="line"><a name="l00883"></a><span class="lineno"><a class="line" href="a02186.html#a7d4627f300b1096d43a3e7d54d8aa5df"> 883</a></span>  <span class="keywordtype">bool</span> <a class="code" href="a02186.html#a7d4627f300b1096d43a3e7d54d8aa5df">recognition_done_</a>; </div><div class="line"><a name="l00884"></a><span class="lineno"><a class="line" href="a02186.html#ac7eaed7f3fedb15212eb39b747de0102"> 884</a></span>  <a class="code" href="a03050.html">TruthCallback</a> *<a class="code" href="a02186.html#ac7eaed7f3fedb15212eb39b747de0102">truth_cb_</a>; </div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span> </div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  <span class="comment">/* @{ */</span></div><div class="line"><a name="l00891"></a><span class="lineno"><a class="line" href="a01627.html#gab3c90d43a3628dc7abeb93e9ca01bc97"> 891</a></span>  <span class="keywordtype">int</span> <a class="code" href="a01627.html#gab3c90d43a3628dc7abeb93e9ca01bc97">rect_left_</a>;</div><div class="line"><a name="l00892"></a><span class="lineno"><a class="line" href="a01627.html#gac71648cd860510ca65b94d87d7d9bb1f"> 892</a></span>  <span class="keywordtype">int</span> <a class="code" href="a01627.html#gac71648cd860510ca65b94d87d7d9bb1f">rect_top_</a>;</div><div class="line"><a name="l00893"></a><span class="lineno"><a class="line" href="a01627.html#ga31dbaec91a5dd8ee7d399786a4bd5ef8"> 893</a></span>  <span class="keywordtype">int</span> <a class="code" href="a01627.html#ga31dbaec91a5dd8ee7d399786a4bd5ef8">rect_width_</a>;</div><div class="line"><a name="l00894"></a><span class="lineno"><a class="line" href="a01627.html#ga978edc537da096ec07d4bb8e4ae5332d"> 894</a></span>  <span class="keywordtype">int</span> <a class="code" href="a01627.html#ga978edc537da096ec07d4bb8e4ae5332d">rect_height_</a>;</div><div class="line"><a name="l00895"></a><span class="lineno"><a class="line" href="a01627.html#gaf3238cd7ff2c0995e647c8c7846bdba3"> 895</a></span>  <span class="keywordtype">int</span> <a class="code" href="a01627.html#gaf3238cd7ff2c0995e647c8c7846bdba3">image_width_</a>;</div><div class="line"><a name="l00896"></a><span class="lineno"><a class="line" href="a01627.html#gab7d24a78f3565c5bfb42b2592b9e8df0"> 896</a></span>  <span class="keywordtype">int</span> <a class="code" href="a01627.html#gab7d24a78f3565c5bfb42b2592b9e8df0">image_height_</a>;</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  <span class="comment">/* @} */</span></div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span> </div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  <span class="comment">// A list of image filenames gets special consideration</span></div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  <span class="keywordtype">bool</span> ProcessPagesFileList(FILE *fp,</div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  <a class="code" href="a02834.html">STRING</a> *buf,</div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* retry_config, <span class="keywordtype">int</span> timeout_millisec,</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  <a class="code" href="a02190.html">TessResultRenderer</a>* renderer,</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  <span class="keywordtype">int</span> tessedit_page_number);</div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  <span class="comment">// TIFF supports multipage so gets special consideration.</span></div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  <span class="keywordtype">bool</span> ProcessPagesMultipageTiff(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data,</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  <span class="keywordtype">size_t</span> size,</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* filename,</div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* retry_config,</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  <span class="keywordtype">int</span> timeout_millisec,</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span>  <a class="code" href="a02190.html">TessResultRenderer</a>* renderer,</div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <span class="keywordtype">int</span> tessedit_page_number);</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  <span class="comment">// There's currently no way to pass a document title from the</span></div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <span class="comment">// Tesseract command line, and we have multiple places that choose</span></div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span>  <span class="comment">// to set the title to an empty string. Using a single named</span></div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  <span class="comment">// variable will hopefully reduce confusion if the situation changes</span></div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  <span class="comment">// in the future.</span></div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *unknown_title_ = <span class="stringliteral">""</span>;</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span> }; <span class="comment">// class TessBaseAPI.</span></div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span> </div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span> <a class="code" href="a02834.html">STRING</a> <a class="code" href="a01629.html#a91558c5771a593a5c2e3e62e9ad8e822">HOcrEscape</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* text);</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span> } <span class="comment">// namespace tesseract.</span></div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span> </div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span> <span class="preprocessor">#endif // TESSERACT_API_BASEAPI_H_</span></div><div class="ttc" id="a01625_html_ga43810a084b5482d0731611513c0a9e16"><div class="ttname"><a href="a01625.html#ga43810a084b5482d0731611513c0a9e16">tesseract::TessBaseAPI::InitTruthCallback</a></div><div class="ttdeci">void InitTruthCallback(TruthCallback *cb)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00787">baseapi.h:787</a></div></div>
<div class="ttc" id="a02186_html_a6d0956a66158ead4e3a86c7f50dad56e"><div class="ttname"><a href="a02186.html#a6d0956a66158ead4e3a86c7f50dad56e">tesseract::TessBaseAPI::Init</a></div><div class="ttdeci">int Init(const char *datapath, const char *language, OcrEngineMode oem)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00231">baseapi.h:231</a></div></div>
<div class="ttc" id="a00767_html_a2a4b69f9a2827dc98bc4cbc233118865afa40ef3af4fea0001b535318130960b2"><div class="ttname"><a href="a00767.html#a2a4b69f9a2827dc98bc4cbc233118865afa40ef3af4fea0001b535318130960b2">character</a></div><div class="ttdef"><b>Definition:</b> <a href="a00767_source.html#l00055">mfoutline.h:55</a></div></div>
<div class="ttc" id="a00605_html_afedceee7ea132dae3d224db2cf8b5618"><div class="ttname"><a href="a00605.html#afedceee7ea132dae3d224db2cf8b5618">UNICHAR_ID</a></div><div class="ttdeci">int UNICHAR_ID</div><div class="ttdef"><b>Definition:</b> <a href="a00605_source.html#l00035">unichar.h:35</a></div></div>
<div class="ttc" id="a02186_html_a965ef2ff51c440756519a3d6f755f34f"><div class="ttname"><a href="a02186.html#a965ef2ff51c440756519a3d6f755f34f">tesseract::TessBaseAPI::Init</a></div><div class="ttdeci">int Init(const char *datapath, const char *language)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00234">baseapi.h:234</a></div></div>
<div class="ttc" id="a01625_html_gac16fdadc30b12935b793be4a42ad8448"><div class="ttname"><a href="a01625.html#gac16fdadc30b12935b793be4a42ad8448">tesseract::TessBaseAPI::tesseract</a></div><div class="ttdeci">Tesseract * tesseract() const</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00783">baseapi.h:783</a></div></div>
<div class="ttc" id="a00560_html_a86e51270628c53ce7e2c23b1c2b4490e"><div class="ttname"><a href="a00560.html#a86e51270628c53ce7e2c23b1c2b4490e">TESS_API</a></div><div class="ttdeci">#define TESS_API</div><div class="ttdef"><b>Definition:</b> <a href="a00560_source.html#l00074">platform.h:74</a></div></div>
<div class="ttc" id="a01626_html_ga01df6300434b0f792dcc9d257e0ca0b5"><div class="ttname"><a href="a01626.html#ga01df6300434b0f792dcc9d257e0ca0b5">tesseract::TessBaseAPI::GetPageRes</a></div><div class="ttdeci">TESS_LOCAL const PAGE_RES * GetPageRes() const</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00865">baseapi.h:865</a></div></div>
<div class="ttc" id="a01629_html_a91558c5771a593a5c2e3e62e9ad8e822"><div class="ttname"><a href="a01629.html#a91558c5771a593a5c2e3e62e9ad8e822">tesseract::HOcrEscape</a></div><div class="ttdeci">STRING HOcrEscape(const char *text)</div><div class="ttdef"><b>Definition:</b> <a href="a00005_source.html#l02632">baseapi.cpp:2632</a></div></div>
<div class="ttc" id="a00014_html_a47436d31525552f08492b8dcdfc12755"><div class="ttname"><a href="a00014.html#a47436d31525552f08492b8dcdfc12755">TessBaseAPI</a></div><div class="ttdeci">struct TessBaseAPI TessBaseAPI</div><div class="ttdef"><b>Definition:</b> <a href="a00014_source.html#l00089">capi.h:89</a></div></div>
<div class="ttc" id="a02186_html_a9d93e1d92ca230ae02b81d44bc88a55c"><div class="ttname"><a href="a02186.html#a9d93e1d92ca230ae02b81d44bc88a55c">tesseract::TessBaseAPI::thresholder_</a></div><div class="ttdeci">ImageThresholder * thresholder_</div><div class="ttdoc">Image thresholding module. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00874">baseapi.h:874</a></div></div>
<div class="ttc" id="a02522_html"><div class="ttname"><a href="a02522.html">ParagraphModel</a></div><div class="ttdef"><b>Definition:</b> <a href="a00326_source.html#l00114">ocrpara.h:114</a></div></div>
<div class="ttc" id="a02610_html"><div class="ttname"><a href="a02610.html">TBOX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00407_source.html#l00034">rect.h:34</a></div></div>
<div class="ttc" id="a02510_html"><div class="ttname"><a href="a02510.html">DENORM</a></div><div class="ttdef"><b>Definition:</b> <a href="a00314_source.html#l00050">normalis.h:50</a></div></div>
<div class="ttc" id="a02186_html_ac22c36258b0cd727188505a9a1dbc7e1"><div class="ttname"><a href="a02186.html#ac22c36258b0cd727188505a9a1dbc7e1">tesseract::TessBaseAPI::block_list_</a></div><div class="ttdeci">BLOCK_LIST * block_list_</div><div class="ttdoc">The page layout. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00876">baseapi.h:876</a></div></div>
<div class="ttc" id="a01625_html_ga3f7d322f92449543044d594147f8b992"><div class="ttname"><a href="a01625.html#ga3f7d322f92449543044d594147f8b992">tesseract::TessBaseAPI::GetTextlines</a></div><div class="ttdeci">Boxa * GetTextlines(Pixa **pixa, int **blockids)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00412">baseapi.h:412</a></div></div>
<div class="ttc" id="a02186_html_ad7b44f5b470c9e04289c348d82726b27"><div class="ttname"><a href="a02186.html#ad7b44f5b470c9e04289c348d82726b27">tesseract::TessBaseAPI::osd_tesseract_</a></div><div class="ttdeci">Tesseract * osd_tesseract_</div><div class="ttdoc">For orientation & script detection. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00871">baseapi.h:871</a></div></div>
<div class="ttc" id="a01629_html_a2b782734f04c669f264e8675aad68d9c"><div class="ttname"><a href="a01629.html#a2b782734f04c669f264e8675aad68d9c">tesseract::TruthCallback</a></div><div class="ttdeci">TessCallback4< const UNICHARSET &, int, PageIterator *, Pix * > TruthCallback</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00091">baseapi.h:91</a></div></div>
<div class="ttc" id="a04130_html"><div class="ttname"><a href="a04130.html">INT_FEATURE_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00737_source.html#l00132">intproto.h:132</a></div></div>
<div class="ttc" id="a01627_html_ga31dbaec91a5dd8ee7d399786a4bd5ef8"><div class="ttname"><a href="a01627.html#ga31dbaec91a5dd8ee7d399786a4bd5ef8">tesseract::TessBaseAPI::rect_width_</a></div><div class="ttdeci">int rect_width_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00893">baseapi.h:893</a></div></div>
<div class="ttc" id="a02530_html"><div class="ttname"><a href="a02530.html">PAGE_RES</a></div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00077">pageres.h:77</a></div></div>
<div class="ttc" id="a03050_html"><div class="ttname"><a href="a03050.html">TessCallback4</a></div><div class="ttdef"><b>Definition:</b> <a href="a00587_source.html#l01709">tesscallback.h:1709</a></div></div>
<div class="ttc" id="a03950_html"><div class="ttname"><a href="a03950.html">UNICHARSET</a></div><div class="ttdef"><b>Definition:</b> <a href="a00623_source.html#l00146">unicharset.h:146</a></div></div>
<div class="ttc" id="a01625_html_ga73e6a99f5f09aaf26dc23f623a813143"><div class="ttname"><a href="a01625.html#ga73e6a99f5f09aaf26dc23f623a813143">tesseract::TessBaseAPI::SetThresholder</a></div><div class="ttdeci">void SetThresholder(ImageThresholder *thresholder)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00376">baseapi.h:376</a></div></div>
<div class="ttc" id="a00206_html"><div class="ttname"><a href="a00206.html">thresholder.h</a></div></div>
<div class="ttc" id="a01629_html_a75942705a59f93c72298f0c0444f9325"><div class="ttname"><a href="a01629.html#a75942705a59f93c72298f0c0444f9325">tesseract::DictFunc</a></div><div class="ttdeci">int(Dict::* DictFunc)(void *void_dawg_args, const UNICHARSET &unicharset, UNICHAR_ID unichar_id, bool word_end) const</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00076">baseapi.h:76</a></div></div>
<div class="ttc" id="a02362_html"><div class="ttname"><a href="a02362.html">tesseract::ImageThresholder</a></div><div class="ttdef"><b>Definition:</b> <a href="a00206_source.html#l00036">thresholder.h:36</a></div></div>
<div class="ttc" id="a00587_html"><div class="ttname"><a href="a00587.html">tesscallback.h</a></div></div>
<div class="ttc" id="a00008_html_af803a54b0e7e7985ebd5bdf9d54424e0"><div class="ttname"><a href="a00008.html#af803a54b0e7e7985ebd5bdf9d54424e0">INT_FEATURE</a></div><div class="ttdeci">INT_FEATURE_STRUCT * INT_FEATURE</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00058">baseapi.h:58</a></div></div>
<div class="ttc" id="a02250_html"><div class="ttname"><a href="a02250.html">tesseract::LTRResultIterator</a></div><div class="ttdef"><b>Definition:</b> <a href="a00104_source.html#l00048">ltrresultiterator.h:48</a></div></div>
<div class="ttc" id="a00575_html"><div class="ttname"><a href="a00575.html">serialis.h</a></div></div>
<div class="ttc" id="a02186_html_a247f50792f581df05afe336a2aeda402"><div class="ttname"><a href="a02186.html#a247f50792f581df05afe336a2aeda402">tesseract::TessBaseAPI::tesseract_</a></div><div class="ttdeci">Tesseract * tesseract_</div><div class="ttdoc">The underlying data object. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00870">baseapi.h:870</a></div></div>
<div class="ttc" id="a02186_html_a06084d66b830a388515663761d842041"><div class="ttname"><a href="a02186.html#a06084d66b830a388515663761d842041">tesseract::TessBaseAPI::paragraph_models_</a></div><div class="ttdeci">GenericVector< ParagraphModel * > * paragraph_models_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00875">baseapi.h:875</a></div></div>
<div class="ttc" id="a02182_html"><div class="ttname"><a href="a02182.html">GenericVector</a></div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00037">baseapi.h:37</a></div></div>
<div class="ttc" id="a02370_html"><div class="ttname"><a href="a02370.html">BlamerBundle</a></div><div class="ttdef"><b>Definition:</b> <a href="a00218_source.html#l00100">blamer.h:100</a></div></div>
<div class="ttc" id="a02186_html_ac7eaed7f3fedb15212eb39b747de0102"><div class="ttname"><a href="a02186.html#ac7eaed7f3fedb15212eb39b747de0102">tesseract::TessBaseAPI::truth_cb_</a></div><div class="ttdeci">TruthCallback * truth_cb_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00884">baseapi.h:884</a></div></div>
<div class="ttc" id="a04290_html"><div class="ttname"><a href="a04290.html">tesseract::Dict</a></div><div class="ttdef"><b>Definition:</b> <a href="a00908_source.html#l00088">dict.h:88</a></div></div>
<div class="ttc" id="a01629_html_a57e9ea37415c443dc4f66d72b3a1d88b"><div class="ttname"><a href="a01629.html#a57e9ea37415c443dc4f66d72b3a1d88b">tesseract::ParamsModelClassifyFunc</a></div><div class="ttdeci">float(Dict::* ParamsModelClassifyFunc)(const char *lang, void *path)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00084">baseapi.h:84</a></div></div>
<div class="ttc" id="a00605_html"><div class="ttname"><a href="a00605.html">unichar.h</a></div></div>
<div class="ttc" id="a02638_html"><div class="ttname"><a href="a02638.html">WERD</a></div><div class="ttdef"><b>Definition:</b> <a href="a00449_source.html#l00059">werd.h:59</a></div></div>
<div class="ttc" id="a02190_html"><div class="ttname"><a href="a02190.html">tesseract::TessResultRenderer</a></div><div class="ttdef"><b>Definition:</b> <a href="a00023_source.html#l00045">renderer.h:45</a></div></div>
<div class="ttc" id="a02186_html_ad7c3d4ead7b9c8e27e45e710e5407913"><div class="ttname"><a href="a02186.html#ad7c3d4ead7b9c8e27e45e710e5407913">tesseract::TessBaseAPI::datapath_</a></div><div class="ttdeci">STRING * datapath_</div><div class="ttdoc">Current location of tessdata. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00880">baseapi.h:880</a></div></div>
<div class="ttc" id="a02186_html_a7d4627f300b1096d43a3e7d54d8aa5df"><div class="ttname"><a href="a02186.html#a7d4627f300b1096d43a3e7d54d8aa5df">tesseract::TessBaseAPI::recognition_done_</a></div><div class="ttdeci">bool recognition_done_</div><div class="ttdoc">page_res_ contains recognition data. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00883">baseapi.h:883</a></div></div>
<div class="ttc" id="a02526_html"><div class="ttname"><a href="a02526.html">ROW</a></div><div class="ttdef"><b>Definition:</b> <a href="a00332_source.html#l00036">ocrrow.h:36</a></div></div>
<div class="ttc" id="a04258_html"><div class="ttname"><a href="a04258.html">tesseract::Dawg</a></div><div class="ttdef"><b>Definition:</b> <a href="a00896_source.html#l00119">dawg.h:119</a></div></div>
<div class="ttc" id="a00767_html_a2a4b69f9a2827dc98bc4cbc233118865a83297de004f4e58b9be2108c6cd08a23"><div class="ttname"><a href="a00767.html#a2a4b69f9a2827dc98bc4cbc233118865a83297de004f4e58b9be2108c6cd08a23">baseline</a></div><div class="ttdef"><b>Definition:</b> <a href="a00767_source.html#l00055">mfoutline.h:55</a></div></div>
<div class="ttc" id="a01629_html_a689189939684bc6f10754a77a4c6c569"><div class="ttname"><a href="a01629.html#a689189939684bc6f10754a77a4c6c569">tesseract::FileReader</a></div><div class="ttdeci">bool(* FileReader)(const STRING &filename, GenericVector< char > *data)</div><div class="ttdef"><b>Definition:</b> <a href="a00518_source.html#l00360">genericvector.h:360</a></div></div>
<div class="ttc" id="a02186_html_af9d4095a569fbf8687cefc005d2f58ee"><div class="ttname"><a href="a02186.html#af9d4095a569fbf8687cefc005d2f58ee">tesseract::TessBaseAPI::last_oem_requested_</a></div><div class="ttdeci">OcrEngineMode last_oem_requested_</div><div class="ttdoc">Last ocr language mode requested. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00882">baseapi.h:882</a></div></div>
<div class="ttc" id="a01629_html_a04550a0ed1279562027bf2fc92c421aeae7376c1e8d55b9d13e75c639a6930159"><div class="ttname"><a href="a01629.html#a04550a0ed1279562027bf2fc92c421aeae7376c1e8d55b9d13e75c639a6930159">tesseract::OEM_DEFAULT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00380_source.html#l00274">publictypes.h:274</a></div></div>
<div class="ttc" id="a01629_html"><div class="ttname"><a href="a01629.html">tesseract</a></div><div class="ttdef"><b>Definition:</b> <a href="a00005_source.html#l00094">baseapi.cpp:94</a></div></div>
<div class="ttc" id="a01627_html_gab7d24a78f3565c5bfb42b2592b9e8df0"><div class="ttname"><a href="a01627.html#gab7d24a78f3565c5bfb42b2592b9e8df0">tesseract::TessBaseAPI::image_height_</a></div><div class="ttdeci">int image_height_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00896">baseapi.h:896</a></div></div>
<div class="ttc" id="a02358_html"><div class="ttname"><a href="a02358.html">tesseract::Tesseract</a></div><div class="ttdef"><b>Definition:</b> <a href="a00191_source.html#l00173">tesseractclass.h:173</a></div></div>
<div class="ttc" id="a02258_html"><div class="ttname"><a href="a02258.html">tesseract::MutableIterator</a></div><div class="ttdef"><b>Definition:</b> <a href="a00110_source.html#l00044">mutableiterator.h:44</a></div></div>
<div class="ttc" id="a01629_html_a04550a0ed1279562027bf2fc92c421ae"><div class="ttname"><a href="a01629.html#a04550a0ed1279562027bf2fc92c421ae">tesseract::OcrEngineMode</a></div><div class="ttdeci">OcrEngineMode</div><div class="ttdef"><b>Definition:</b> <a href="a00380_source.html#l00268">publictypes.h:268</a></div></div>
<div class="ttc" id="a01627_html_gab3c90d43a3628dc7abeb93e9ca01bc97"><div class="ttname"><a href="a01627.html#gab3c90d43a3628dc7abeb93e9ca01bc97">tesseract::TessBaseAPI::rect_left_</a></div><div class="ttdeci">int rect_left_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00891">baseapi.h:891</a></div></div>
<div class="ttc" id="a02346_html"><div class="ttname"><a href="a02346.html">tesseract::ResultIterator</a></div><div class="ttdef"><b>Definition:</b> <a href="a00173_source.html#l00041">resultiterator.h:41</a></div></div>
<div class="ttc" id="a02246_html"><div class="ttname"><a href="a02246.html">tesseract::EquationDetect</a></div><div class="ttdef"><b>Definition:</b> <a href="a00086_source.html#l00039">equationdetect.h:39</a></div></div>
<div class="ttc" id="a02546_html"><div class="ttname"><a href="a02546.html">PAGE_RES_IT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00344_source.html#l00675">pageres.h:675</a></div></div>
<div class="ttc" id="a02186_html_a12dda612630eba40e15f9d0b9955a04c"><div class="ttname"><a href="a02186.html#a12dda612630eba40e15f9d0b9955a04c">tesseract::TessBaseAPI::page_res_</a></div><div class="ttdeci">PAGE_RES * page_res_</div><div class="ttdoc">The page-level data. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00877">baseapi.h:877</a></div></div>
<div class="ttc" id="a02186_html_a0222d0f645909860d13f71c078008133"><div class="ttname"><a href="a02186.html#a0222d0f645909860d13f71c078008133">tesseract::TessBaseAPI::equ_detect_</a></div><div class="ttdeci">EquationDetect * equ_detect_</div><div class="ttdoc">The equation detector. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00872">baseapi.h:872</a></div></div>
<div class="ttc" id="a01629_html_aa26c22b65cc9765a0e747120f4287fd7"><div class="ttname"><a href="a01629.html#aa26c22b65cc9765a0e747120f4287fd7">tesseract::PageIteratorLevel</a></div><div class="ttdeci">PageIteratorLevel</div><div class="ttdef"><b>Definition:</b> <a href="a00380_source.html#l00219">publictypes.h:219</a></div></div>
<div class="ttc" id="a02834_html"><div class="ttname"><a href="a02834.html">STRING</a></div><div class="ttdef"><b>Definition:</b> <a href="a00584_source.html#l00045">strngs.h:45</a></div></div>
<div class="ttc" id="a01627_html_ga978edc537da096ec07d4bb8e4ae5332d"><div class="ttname"><a href="a01627.html#ga978edc537da096ec07d4bb8e4ae5332d">tesseract::TessBaseAPI::rect_height_</a></div><div class="ttdeci">int rect_height_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00894">baseapi.h:894</a></div></div>
<div class="ttc" id="a04866_html"><div class="ttname"><a href="a04866.html">tesseract::Wordrec</a></div><div class="ttdef"><b>Definition:</b> <a href="a01622_source.html#l00192">wordrec.h:192</a></div></div>
<div class="ttc" id="a01629_html_a65cdf27a58055de3324687ee56b1dcba"><div class="ttname"><a href="a01629.html#a65cdf27a58055de3324687ee56b1dcba">tesseract::DetectParagraphs</a></div><div class="ttdeci">void DetectParagraphs(int debug_level, GenericVector< RowInfo > *row_infos, GenericVector< PARA *> *row_owners, PARA_LIST *paragraphs, GenericVector< ParagraphModel *> *models)</div><div class="ttdef"><b>Definition:</b> <a href="a00140_source.html#l02271">paragraphs.cpp:2271</a></div></div>
<div class="ttc" id="a02186_html_a74a291190aa0bbf90b57f678b1fb0a5c"><div class="ttname"><a href="a02186.html#a74a291190aa0bbf90b57f678b1fb0a5c">tesseract::TessBaseAPI::language_</a></div><div class="ttdeci">STRING * language_</div><div class="ttdoc">Last initialized language. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00881">baseapi.h:881</a></div></div>
<div class="ttc" id="a00560_html_aefcd819eeed9085ef0eeeff0f4cac64f"><div class="ttname"><a href="a00560.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a></div><div class="ttdeci">#define TESS_LOCAL</div><div class="ttdef"><b>Definition:</b> <a href="a00560_source.html#l00075">platform.h:75</a></div></div>
<div class="ttc" id="a01625_html_ga97d470c76d2ff9580ac70e547eb8be99"><div class="ttname"><a href="a01625.html#ga97d470c76d2ff9580ac70e547eb8be99">tesseract::TessBaseAPI::oem</a></div><div class="ttdeci">OcrEngineMode oem() const</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00785">baseapi.h:785</a></div></div>
<div class="ttc" id="a02278_html"><div class="ttname"><a href="a02278.html">tesseract::PageIterator</a></div><div class="ttdef"><b>Definition:</b> <a href="a00128_source.html#l00052">pageiterator.h:52</a></div></div>
<div class="ttc" id="a00014_html_a79b401fe19433464a13b416108deb755"><div class="ttname"><a href="a00014.html#a79b401fe19433464a13b416108deb755">TessResultRenderer</a></div><div class="ttdeci">struct TessResultRenderer TessResultRenderer</div><div class="ttdef"><b>Definition:</b> <a href="a00014_source.html#l00083">capi.h:83</a></div></div>
<div class="ttc" id="a02266_html"><div class="ttname"><a href="a02266.html">OSResults</a></div><div class="ttdef"><b>Definition:</b> <a href="a00116_source.html#l00049">osdetect.h:49</a></div></div>
<div class="ttc" id="a02186_html_a22a0c520bc88e2d80fb8b6a10b7caba1"><div class="ttname"><a href="a02186.html#a22a0c520bc88e2d80fb8b6a10b7caba1">tesseract::TessBaseAPI::output_file_</a></div><div class="ttdeci">STRING * output_file_</div><div class="ttdoc">Name used by debug code. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00879">baseapi.h:879</a></div></div>
<div class="ttc" id="a01627_html_gac71648cd860510ca65b94d87d7d9bb1f"><div class="ttname"><a href="a01627.html#gac71648cd860510ca65b94d87d7d9bb1f">tesseract::TessBaseAPI::rect_top_</a></div><div class="ttdeci">int rect_top_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00892">baseapi.h:892</a></div></div>
<div class="ttc" id="a00560_html"><div class="ttname"><a href="a00560.html">platform.h</a></div></div>
<div class="ttc" id="a01629_html_ad7ebf88af7dcdd155deb8655ba5991ff"><div class="ttname"><a href="a01629.html#ad7ebf88af7dcdd155deb8655ba5991ff">tesseract::ProbabilityInContextFunc</a></div><div class="ttdeci">double(Dict::* ProbabilityInContextFunc)(const char *lang, const char *context, int context_bytes, const char *character, int character_bytes)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00079">baseapi.h:79</a></div></div>
<div class="ttc" id="a01627_html_gaf3238cd7ff2c0995e647c8c7846bdba3"><div class="ttname"><a href="a01627.html#gaf3238cd7ff2c0995e647c8c7846bdba3">tesseract::TessBaseAPI::image_width_</a></div><div class="ttdeci">int image_width_</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00895">baseapi.h:895</a></div></div>
<div class="ttc" id="a02186_html_a4690919aa9d4eabda36bdefdaadf7ac9"><div class="ttname"><a href="a02186.html#a4690919aa9d4eabda36bdefdaadf7ac9">tesseract::TessBaseAPI::input_file_</a></div><div class="ttdeci">STRING * input_file_</div><div class="ttdoc">Name used by training code. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00878">baseapi.h:878</a></div></div>
<div class="ttc" id="a02498_html"><div class="ttname"><a href="a02498.html">MATRIX</a></div><div class="ttdef"><b>Definition:</b> <a href="a00302_source.html#l00575">matrix.h:575</a></div></div>
<div class="ttc" id="a02398_html"><div class="ttname"><a href="a02398.html">TBLOB</a></div><div class="ttdef"><b>Definition:</b> <a href="a00230_source.html#l00268">blobs.h:268</a></div></div>
<div class="ttc" id="a00128_html"><div class="ttname"><a href="a00128.html">pageiterator.h</a></div></div>
<div class="ttc" id="a02186_html"><div class="ttname"><a href="a02186.html">tesseract::TessBaseAPI</a></div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00101">baseapi.h:101</a></div></div>
<div class="ttc" id="a00380_html"><div class="ttname"><a href="a00380.html">publictypes.h</a></div></div>
<div class="ttc" id="a02786_html"><div class="ttname"><a href="a02786.html">ETEXT_DESC</a></div><div class="ttdef"><b>Definition:</b> <a href="a00551_source.html#l00119">ocrclass.h:119</a></div></div>
<div class="ttc" id="a01629_html_a338d4c8b5d497b5ec3e6e4269d8ac66a"><div class="ttname"><a href="a01629.html#a338d4c8b5d497b5ec3e6e4269d8ac66a">tesseract::PageSegMode</a></div><div class="ttdeci">PageSegMode</div><div class="ttdef"><b>Definition:</b> <a href="a00380_source.html#l00163">publictypes.h:163</a></div></div>
<div class="ttc" id="a00002_html"><div class="ttname"><a href="a00002.html">apitypes.h</a></div></div>
<div class="ttc" id="a01629_html_a0c8529ffdf3ba5c8d219e377c13b1288"><div class="ttname"><a href="a01629.html#a0c8529ffdf3ba5c8d219e377c13b1288">tesseract::FillLatticeFunc</a></div><div class="ttdeci">void(Wordrec::* FillLatticeFunc)(const MATRIX &ratings, const WERD_CHOICE_LIST &best_choices, const UNICHARSET &unicharset, BlamerBundle *blamer_bundle)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00086">baseapi.h:86</a></div></div>
<div class="ttc" id="a00173_html"><div class="ttname"><a href="a00173.html">resultiterator.h</a></div></div>
<div class="ttc" id="a01625_html_gad74ae1266a5299734ec6f5225b6cb5c1"><div class="ttname"><a href="a01625.html#gad74ae1266a5299734ec6f5225b6cb5c1">tesseract::TessBaseAPI::GetComponentImages</a></div><div class="ttdeci">Boxa * GetComponentImages(const PageIteratorLevel level, const bool text_only, Pixa **pixa, int **blockids)</div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00461">baseapi.h:461</a></div></div>
<div class="ttc" id="a02186_html_a83549f01f06c140e14dad3f8c025d885"><div class="ttname"><a href="a02186.html#a83549f01f06c140e14dad3f8c025d885">tesseract::TessBaseAPI::reader_</a></div><div class="ttdeci">FileReader reader_</div><div class="ttdoc">Reads files from any filesystem. </div><div class="ttdef"><b>Definition:</b> <a href="a00008_source.html#l00873">baseapi.h:873</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_fce9a394c0d2c636e610a0a34fe30580.html">tesseract-ocr.master</a></li><li class="navelem"><a class="el" href="dir_fd2783e80b2d56815818e17a68fc4d98.html">src</a></li><li class="navelem"><a class="el" href="dir_316d7b7f065455dc5a9611f5cda5f609.html">api</a></li><li class="navelem"><a class="el" href="a00008.html">baseapi.h</a></li>
<li class="footer">Generated on Mon Oct 29 2018 11:03:42 for tesseract by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>