tesseract  5.0.0-alpha-619-ge9db
capi.h
Go to the documentation of this file.
1 // File: capi.h
3 // Description: C-API TessBaseAPI
4 //
5 // (C) Copyright 2012, Google Inc.
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
17 
18 #ifndef API_CAPI_H_
19 #define API_CAPI_H_
20 
21 #if defined(TESSERACT_API_BASEAPI_H_) && !defined(TESS_CAPI_INCLUDE_BASEAPI)
22 # define TESS_CAPI_INCLUDE_BASEAPI
23 #endif
24 
25 #ifdef TESS_CAPI_INCLUDE_BASEAPI
26 # include "baseapi.h"
27 # include "ocrclass.h"
28 # include "pageiterator.h"
29 # include "renderer.h"
30 # include "resultiterator.h"
31 #else
32 # include <stdbool.h>
33 # include <stdio.h>
34 
35 # include "platform.h"
36 #endif
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #ifndef BOOL
43 # define BOOL int
44 # define TRUE 1
45 # define FALSE 0
46 #endif
47 
48 #ifdef TESS_CAPI_INCLUDE_BASEAPI
57 typedef tesseract::ImageThresholder TessImageThresholder;
59 typedef tesseract::DictFunc TessDictFunc;
60 typedef tesseract::ProbabilityInContextFunc TessProbabilityInContextFunc;
61 // typedef tesseract::ParamsModelClassifyFunc TessParamsModelClassifyFunc;
62 typedef tesseract::FillLatticeFunc TessFillLatticeFunc;
63 typedef tesseract::Dawg TessDawg;
64 typedef tesseract::TruthCallback TessTruthCallback;
70 #else
72 typedef struct TessBaseAPI TessBaseAPI;
77 typedef enum TessOcrEngineMode {
83 typedef enum TessPageSegMode {
100 typedef enum TessPageIteratorLevel {
107 typedef enum TessPolyBlockType {
125 typedef enum TessOrientation {
137 typedef enum TessWritingDirection {
142 typedef enum TessTextlineOrder {
147 typedef struct ETEXT_DESC ETEXT_DESC;
148 #endif
149 
150 typedef bool (*TessCancelFunc)(void* cancel_this, int words);
151 typedef bool (*TessProgressFunc)(ETEXT_DESC* ths, int left, int right, int top,
152  int bottom);
153 
154 struct Pix;
155 struct Boxa;
156 struct Pixa;
157 
158 /* General free functions */
159 
160 TESS_API const char* TessVersion();
161 TESS_API void TessDeleteText(const char* text);
162 TESS_API void TessDeleteTextArray(char** arr);
163 TESS_API void TessDeleteIntArray(const int* arr);
164 
165 /* Renderer API */
166 TESS_API TessResultRenderer* TessTextRendererCreate(const char* outputbase);
167 TESS_API TessResultRenderer* TessHOcrRendererCreate(const char* outputbase);
168 TESS_API TessResultRenderer* TessHOcrRendererCreate2(const char* outputbase,
169  BOOL font_info);
170 TESS_API TessResultRenderer* TessAltoRendererCreate(const char* outputbase);
171 TESS_API TessResultRenderer* TessTsvRendererCreate(const char* outputbase);
172 TESS_API TessResultRenderer* TessPDFRendererCreate(const char* outputbase,
173  const char* datadir,
174  BOOL textonly);
175 TESS_API TessResultRenderer* TessUnlvRendererCreate(const char* outputbase);
176 TESS_API TessResultRenderer* TessBoxTextRendererCreate(const char* outputbase);
177 TESS_API TessResultRenderer* TessLSTMBoxRendererCreate(const char* outputbase);
179  const char* outputbase);
180 
183  TessResultRenderer* next);
185  TessResultRenderer* renderer);
187  const char* title);
189  TessBaseAPI* api);
191 
195 
196 /* Base API */
197 
200 
201 TESS_API size_t TessBaseAPIGetOpenCLDevice(TessBaseAPI* handle, void** device);
202 
203 TESS_API void TessBaseAPISetInputName(TessBaseAPI* handle, const char* name);
204 TESS_API const char* TessBaseAPIGetInputName(TessBaseAPI* handle);
205 
206 TESS_API void TessBaseAPISetInputImage(TessBaseAPI* handle, struct Pix* pix);
207 TESS_API struct Pix* TessBaseAPIGetInputImage(TessBaseAPI* handle);
208 
210 TESS_API const char* TessBaseAPIGetDatapath(TessBaseAPI* handle);
211 
212 TESS_API void TessBaseAPISetOutputName(TessBaseAPI* handle, const char* name);
213 
214 TESS_API BOOL TessBaseAPISetVariable(TessBaseAPI* handle, const char* name,
215  const char* value);
216 TESS_API BOOL TessBaseAPISetDebugVariable(TessBaseAPI* handle, const char* name,
217  const char* value);
218 
220  const char* name, int* value);
222  const char* name, BOOL* value);
224  const char* name, double* value);
225 TESS_API const char* TessBaseAPIGetStringVariable(const TessBaseAPI* handle,
226  const char* name);
227 
228 TESS_API void TessBaseAPIPrintVariables(const TessBaseAPI* handle, FILE* fp);
230  const char* filename);
231 
232 #ifdef TESS_CAPI_INCLUDE_BASEAPI
233 
235  const char* name, STRING* val);
236 
237 TESS_API int TessBaseAPIInit(TessBaseAPI* handle, const char* datapath,
238  const char* language, TessOcrEngineMode mode,
239  char** configs, int configs_size,
240  const STRING* vars_vec, size_t vars_vec_size,
241  const STRING* vars_values, size_t vars_values_size,
242  BOOL set_only_init_params);
243 
244 #endif // def TESS_CAPI_INCLUDE_BASEAPI
245 
246 TESS_API int TessBaseAPIInit1(TessBaseAPI* handle, const char* datapath,
247  const char* language, TessOcrEngineMode oem,
248  char** configs, int configs_size);
249 TESS_API int TessBaseAPIInit2(TessBaseAPI* handle, const char* datapath,
250  const char* language, TessOcrEngineMode oem);
251 TESS_API int TessBaseAPIInit3(TessBaseAPI* handle, const char* datapath,
252  const char* language);
253 
254 TESS_API int TessBaseAPIInit4(TessBaseAPI* handle, const char* datapath,
255  const char* language, TessOcrEngineMode mode,
256  char** configs, int configs_size, char** vars_vec,
257  char** vars_values, size_t vars_vec_size,
258  BOOL set_only_non_debug_params);
259 
261  const TessBaseAPI* handle);
263  const TessBaseAPI* handle);
265  const TessBaseAPI* handle);
266 
267 TESS_API int TessBaseAPIInitLangMod(TessBaseAPI* handle, const char* datapath,
268  const char* language);
270 
272  const char* filename);
274  const char* filename);
275 
277  TessPageSegMode mode);
279 
280 TESS_API char* TessBaseAPIRect(TessBaseAPI* handle,
281  const unsigned char* imagedata,
282  int bytes_per_pixel, int bytes_per_line,
283  int left, int top, int width, int height);
284 
286 
288  const unsigned char* imagedata, int width,
289  int height, int bytes_per_pixel,
290  int bytes_per_line);
291 TESS_API void TessBaseAPISetImage2(TessBaseAPI* handle, struct Pix* pix);
292 
294 
295 TESS_API void TessBaseAPISetRectangle(TessBaseAPI* handle, int left, int top,
296  int width, int height);
297 
298 #ifdef TESS_CAPI_INCLUDE_BASEAPI
300  TessImageThresholder* thresholder);
301 #endif
302 
304 TESS_API struct Boxa* TessBaseAPIGetRegions(TessBaseAPI* handle,
305  struct Pixa** pixa);
306 TESS_API struct Boxa* TessBaseAPIGetTextlines(TessBaseAPI* handle,
307  struct Pixa** pixa,
308  int** blockids);
309 TESS_API struct Boxa* TessBaseAPIGetTextlines1(TessBaseAPI* handle,
310  BOOL raw_image, int raw_padding,
311  struct Pixa** pixa,
312  int** blockids, int** paraids);
313 TESS_API struct Boxa* TessBaseAPIGetStrips(TessBaseAPI* handle,
314  struct Pixa** pixa, int** blockids);
315 TESS_API struct Boxa* TessBaseAPIGetWords(TessBaseAPI* handle,
316  struct Pixa** pixa);
318  struct Pixa** cc);
320  TessPageIteratorLevel level,
321  BOOL text_only,
322  struct Pixa** pixa,
323  int** blockids);
325  TessBaseAPI* handle, TessPageIteratorLevel level, BOOL text_only,
326  BOOL raw_image, int raw_padding, struct Pixa** pixa, int** blockids,
327  int** paraids);
328 
330  const TessBaseAPI* handle);
331 
333 
334 TESS_API int TessBaseAPIRecognize(TessBaseAPI* handle, ETEXT_DESC* monitor);
335 
336 #ifndef DISABLED_LEGACY_ENGINE
338  ETEXT_DESC* monitor);
339 #endif
340 
341 TESS_API BOOL TessBaseAPIProcessPages(TessBaseAPI* handle, const char* filename,
342  const char* retry_config,
343  int timeout_millisec,
344  TessResultRenderer* renderer);
345 TESS_API BOOL TessBaseAPIProcessPage(TessBaseAPI* handle, struct Pix* pix,
346  int page_index, const char* filename,
347  const char* retry_config,
348  int timeout_millisec,
349  TessResultRenderer* renderer);
350 
353  TessBaseAPI* handle);
354 
356 TESS_API char* TessBaseAPIGetHOCRText(TessBaseAPI* handle, int page_number);
357 
358 TESS_API char* TessBaseAPIGetAltoText(TessBaseAPI* handle, int page_number);
359 TESS_API char* TessBaseAPIGetTsvText(TessBaseAPI* handle, int page_number);
360 
361 TESS_API char* TessBaseAPIGetBoxText(TessBaseAPI* handle, int page_number);
362 TESS_API char* TessBaseAPIGetLSTMBoxText(TessBaseAPI* handle, int page_number);
364  int page_number);
365 
368 
370 
371 #ifndef DISABLED_LEGACY_ENGINE
373  TessPageSegMode mode,
374  const char* wordstr);
375 #endif // ndef DISABLED_LEGACY_ENGINE
376 
378 TESS_API void TessBaseAPIEnd(TessBaseAPI* handle);
379 
380 TESS_API int TessBaseAPIIsValidWord(TessBaseAPI* handle, const char* word);
381 TESS_API BOOL TessBaseAPIGetTextDirection(TessBaseAPI* handle, int* out_offset,
382  float* out_slope);
383 
384 #ifdef TESS_CAPI_INCLUDE_BASEAPI
385 
386 TESS_API void TessBaseAPISetDictFunc(TessBaseAPI* handle, TessDictFunc f);
387 
389 
391  TessBaseAPI* handle, TessProbabilityInContextFunc f);
392 
393 // Call TessDeleteText(*best_script_name) to free memory allocated by this
394 // function
396  int* orient_deg,
397  float* orient_conf,
398  const char** script_name,
399  float* script_conf);
400 
401 #endif // def TESS_CAPI_INCLUDE_BASEAPI
402 
403 TESS_API const char* TessBaseAPIGetUnichar(TessBaseAPI* handle, int unichar_id);
404 
406  double margin);
407 
408 #ifdef TESS_CAPI_INCLUDE_BASEAPI
409 
410 TESS_API const TessDawg* TessBaseAPIGetDawg(const TessBaseAPI* handle, int i);
411 
412 TESS_API int TessBaseAPINumDawgs(const TessBaseAPI* handle);
413 
415 
417  TessTruthCallback cb);
418 
420  int** block_orientation,
421  bool** vertical_writing);
422 
423 #endif
424 
425 /* Page iterator */
426 
428 
430 
432 
434  TessPageIteratorLevel level);
435 
437  TessPageIteratorLevel level);
438 
440  TessPageIteratorLevel level,
441  TessPageIteratorLevel element);
442 
444  TessPageIteratorLevel level,
445  int* left, int* top, int* right,
446  int* bottom);
447 
450 
452  const TessPageIterator* handle, TessPageIteratorLevel level);
453 
454 TESS_API struct Pix* TessPageIteratorGetImage(const TessPageIterator* handle,
455  TessPageIteratorLevel level,
456  int padding,
457  struct Pix* original_image,
458  int* left, int* top);
459 
461  TessPageIteratorLevel level, int* x1,
462  int* y1, int* x2, int* y2);
463 
465  TessPageIterator* handle, TessOrientation* orientation,
466  TessWritingDirection* writing_direction, TessTextlineOrder* textline_order,
467  float* deskew_angle);
468 
470  TessPageIterator* handle, TessParagraphJustification* justification,
471  BOOL* is_list_item, BOOL* is_crown, int* first_line_indent);
472 
473 /* Result iterator */
474 
477  const TessResultIterator* handle);
479  TessResultIterator* handle);
481  const TessResultIterator* handle);
483  const TessResultIterator* handle);
484 
486  TessPageIteratorLevel level);
488  TessPageIteratorLevel level);
490  TessPageIteratorLevel level);
492  const TessResultIterator* handle);
494  const TessResultIterator* handle, BOOL* is_bold, BOOL* is_italic,
495  BOOL* is_underlined, BOOL* is_monospace, BOOL* is_serif, BOOL* is_smallcaps,
496  int* pointsize, int* font_id);
497 
507 
511  const TessChoiceIterator* handle);
513 
514 /* Progress monitor */
515 
517 TESS_API void TessMonitorDelete(ETEXT_DESC* monitor);
519  TessCancelFunc cancelFunc);
520 TESS_API void TessMonitorSetCancelThis(ETEXT_DESC* monitor, void* cancelThis);
523  TessProgressFunc progressFunc);
525 TESS_API void TessMonitorSetDeadlineMSecs(ETEXT_DESC* monitor, int deadline);
526 
527 #ifndef DISABLED_LEGACY_ENGINE
528 
529 # ifdef TESS_CAPI_INCLUDE_BASEAPI
530 TESS_API void TessBaseAPISetFillLatticeFunc(TessBaseAPI* handle,
531  TessFillLatticeFunc f);
532 
534  INT_FEATURE_STRUCT* int_features,
535  int* num_features,
536  int* FeatureOutlineIndex);
537 
538 TESS_API ROW* TessFindRowForBox(BLOCK_LIST* blocks, int left, int top,
539  int right, int bottom);
540 
542  int num_max_matches,
543  int* unichar_ids, float* ratings,
544  int* num_matches_returned);
545 
546 TESS_API ROW* TessMakeTessOCRRow(float baseline, float xheight, float descender,
547  float ascender);
548 
549 TESS_API TBLOB* TessMakeTBLOB(Pix* pix);
550 
551 TESS_API void TessNormalizeTBLOB(TBLOB* tblob, ROW* row, BOOL numeric_mode);
552 
554 
555 TESS_API void TessDeleteBlockList(BLOCK_LIST* block_list);
556 
557 # endif // def TESS_CAPI_INCLUDE_BASEAPI
558 
559 #endif // ndef DISABLED_LEGACY_ENGINE
560 
561 #ifdef __cplusplus
562 }
563 #endif
564 
565 #endif // API_CAPI_H_
TessHOcrRendererCreate
TESS_API TessResultRenderer * TessHOcrRendererCreate(const char *outputbase)
Definition: capi.cpp:56
TessDeleteText
TESS_API void TessDeleteText(const char *text)
Definition: capi.cpp:29
PSM_OSD_ONLY
Definition: capi.h:84
TessUnlvRendererCreate
TESS_API TessResultRenderer * TessUnlvRendererCreate(const char *outputbase)
Definition: capi.cpp:81
TessBaseAPIGetHOCRText
TESS_API char * TessBaseAPIGetHOCRText(TessBaseAPI *handle, int page_number)
Definition: capi.cpp:505
TessBaseAPIGetWords
TESS_API struct Boxa * TessBaseAPIGetWords(TessBaseAPI *handle, struct Pixa **pixa)
Definition: capi.cpp:424
TessBaseAPIGetSourceYResolution
TESS_API int TessBaseAPIGetSourceYResolution(TessBaseAPI *handle)
Definition: capi.cpp:175
TessChoiceIteratorConfidence
TESS_API float TessChoiceIteratorConfidence(const TessChoiceIterator *handle)
Definition: capi.cpp:875
TessBaseAPINumDawgs
int TessBaseAPINumDawgs(const TessBaseAPI *handle)
Definition: capi.cpp:631
TessBaseAPIGetDoubleVariable
TESS_API BOOL TessBaseAPIGetDoubleVariable(const TessBaseAPI *handle, const char *name, double *value)
Definition: capi.cpp:217
TessDeleteTextArray
TESS_API void TessDeleteTextArray(char **arr)
Definition: capi.cpp:33
TessPageIteratorGetBinaryImage
TESS_API struct Pix * TessPageIteratorGetBinaryImage(const TessPageIterator *handle, TessPageIteratorLevel level)
Definition: capi.cpp:717
TessResultRendererAddImage
TESS_API BOOL TessResultRendererAddImage(TessResultRenderer *renderer, TessBaseAPI *api)
Definition: capi.cpp:119
TessChoiceIterator
struct TessChoiceIterator TessChoiceIterator
Definition: capi.h:76
TessBaseAPIReadDebugConfigFile
TESS_API void TessBaseAPIReadDebugConfigFile(TessBaseAPI *handle, const char *filename)
Definition: capi.cpp:335
TessBaseAPISetDictFunc
void TessBaseAPISetDictFunc(TessBaseAPI *handle, TessDictFunc f)
Definition: capi.cpp:574
TessMonitorSetProgressFunc
TESS_API void TessMonitorSetProgressFunc(ETEXT_DESC *monitor, TessProgressFunc progressFunc)
Definition: capi.cpp:902
TessTextRendererCreate
TESS_API TessResultRenderer * TessTextRendererCreate(const char *outputbase)
Definition: capi.cpp:51
JUSTIFICATION_UNKNOWN
Definition: capi.h:132
TessBaseGetBlockTextOrientations
void TessBaseGetBlockTextOrientations(TessBaseAPI *handle, int **block_orientation, bool **vertical_writing)
Definition: capi.cpp:665
TessMonitorCreate
TESS_API ETEXT_DESC * TessMonitorCreate()
Definition: capi.cpp:879
TessTsvRendererCreate
TESS_API TessResultRenderer * TessTsvRendererCreate(const char *outputbase)
Definition: capi.cpp:71
TessResultIteratorConfidence
TESS_API float TessResultIteratorConfidence(const TessResultIterator *handle, TessPageIteratorLevel level)
Definition: capi.cpp:792
TessPageIteratorNext
TESS_API BOOL TessPageIteratorNext(TessPageIterator *handle, TessPageIteratorLevel level)
Definition: capi.cpp:690
WRITING_DIRECTION_TOP_TO_BOTTOM
Definition: capi.h:140
PSM_AUTO_ONLY
Definition: capi.h:86
tesseract::DictFunc
int(Dict::*)(void *, const UNICHARSET &, UNICHAR_ID, bool) const DictFunc
Definition: baseapi.h:80
TessPageIterator
struct TessPageIterator TessPageIterator
Definition: capi.h:73
TessBaseAPIOem
TessOcrEngineMode TessBaseAPIOem(const TessBaseAPI *handle)
Definition: capi.cpp:651
TessBaseAPIGetInitLanguagesAsString
const TESS_API char * TessBaseAPIGetInitLanguagesAsString(const TessBaseAPI *handle)
Definition: capi.cpp:290
WRITING_DIRECTION_RIGHT_TO_LEFT
Definition: capi.h:139
TessPageIteratorOrientation
TESS_API void TessPageIteratorOrientation(TessPageIterator *handle, TessOrientation *orientation, TessWritingDirection *writing_direction, TessTextlineOrder *textline_order, float *deskew_angle)
Definition: capi.cpp:735
TessOcrEngineMode
TessOcrEngineMode
Definition: capi.h:77
RIL_WORD
Definition: capi.h:104
baseline
Definition: mfoutline.h:62
TessBaseAPIGetRegions
TESS_API struct Boxa * TessBaseAPIGetRegions(TessBaseAPI *handle, struct Pixa **pixa)
Definition: capi.cpp:400
tesseract::ChoiceIterator
Definition: ltrresultiterator.h:186
TessBaseAPIGetDawg
const TessDawg * TessBaseAPIGetDawg(const TessBaseAPI *handle, int i)
Definition: capi.cpp:626
TessDeleteResultRenderer
TESS_API void TessDeleteResultRenderer(TessResultRenderer *renderer)
Definition: capi.cpp:100
TessBaseAPIGetComponentImages1
TESS_API struct Boxa * TessBaseAPIGetComponentImages1(TessBaseAPI *handle, TessPageIteratorLevel level, BOOL text_only, BOOL raw_image, int raw_padding, struct Pixa **pixa, int **blockids, int **paraids)
Definition: capi.cpp:441
tesseract::PageIterator
Definition: pageiterator.h:52
TessMakeTBLOB
TBLOB * TessMakeTBLOB(struct Pix *pix)
Definition: capi.cpp:641
PT_HEADING_IMAGE
Definition: capi.h:118
tesseract::ParagraphJustification
ParagraphJustification
Definition: publictypes.h:248
platform.h
TessBaseAPIGetVariableAsString
BOOL TessBaseAPIGetVariableAsString(TessBaseAPI *handle, const char *name, STRING *val)
Definition: capi.cpp:244
TessBaseAPIAllWordConfidences
TESS_API int * TessBaseAPIAllWordConfidences(TessBaseAPI *handle)
Definition: capi.cpp:543
TessResultIteratorSymbolIsDropcap
TESS_API BOOL TessResultIteratorSymbolIsDropcap(const TessResultIterator *handle)
Definition: capi.cpp:857
TessBaseAPIGetTextlines
TESS_API struct Boxa * TessBaseAPIGetTextlines(TessBaseAPI *handle, struct Pixa **pixa, int **blockids)
Definition: capi.cpp:405
PT_NOISE
Definition: capi.h:122
STRING
Definition: strngs.h:45
TessBaseAPIRecognize
TESS_API int TessBaseAPIRecognize(TessBaseAPI *handle, ETEXT_DESC *monitor)
Definition: capi.cpp:460
PT_FLOWING_IMAGE
Definition: capi.h:117
PSM_AUTO_OSD
Definition: capi.h:85
PSM_RAW_LINE
Definition: capi.h:97
TessWordStrBoxRendererCreate
TESS_API TessResultRenderer * TessWordStrBoxRendererCreate(const char *outputbase)
Definition: capi.cpp:91
PT_INLINE_EQUATION
Definition: capi.h:113
TessMonitorSetDeadlineMSecs
TESS_API void TessMonitorSetDeadlineMSecs(ETEXT_DESC *monitor, int deadline)
Definition: capi.cpp:910
PT_TABLE
Definition: capi.h:114
PSM_SINGLE_BLOCK
Definition: capi.h:90
TessBaseAPIGetAvailableLanguagesAsVector
TESS_API char ** TessBaseAPIGetAvailableLanguagesAsVector(const TessBaseAPI *handle)
Definition: capi.cpp:307
PSM_AUTO
Definition: capi.h:87
TEXTLINE_ORDER_TOP_TO_BOTTOM
Definition: capi.h:145
TessChoiceIteratorDelete
TESS_API void TessChoiceIteratorDelete(TessChoiceIterator *handle)
Definition: capi.cpp:861
tesseract::WritingDirection
WritingDirection
Definition: publictypes.h:131
PT_CAPTION_TEXT
Definition: capi.h:116
JUSTIFICATION_LEFT
Definition: capi.h:133
TessBaseAPISetInputName
TESS_API void TessBaseAPISetInputName(TessBaseAPI *handle, const char *name)
Definition: capi.cpp:157
TessPDFRendererCreate
TESS_API TessResultRenderer * TessPDFRendererCreate(const char *outputbase, const char *datadir, BOOL textonly)
Definition: capi.cpp:75
TessResultIteratorGetPageIteratorConst
const TESS_API TessPageIterator * TessResultIteratorGetPageIteratorConst(const TessResultIterator *handle)
Definition: capi.cpp:773
TessBaseAPIGetConnectedComponents
TESS_API struct Boxa * TessBaseAPIGetConnectedComponents(TessBaseAPI *handle, struct Pixa **cc)
Definition: capi.cpp:430
tesseract::ProbabilityInContextFunc
double(Dict::*)(const char *, const char *, int, const char *, int) ProbabilityInContextFunc
Definition: baseapi.h:82
ETEXT_DESC
Definition: ocrclass.h:95
TessBaseAPISetDebugVariable
TESS_API BOOL TessBaseAPISetDebugVariable(TessBaseAPI *handle, const char *name, const char *value)
Definition: capi.cpp:194
TessBaseAPIGetAltoText
TESS_API char * TessBaseAPIGetAltoText(TessBaseAPI *handle, int page_number)
Definition: capi.cpp:510
TessMutableIterator
struct TessMutableIterator TessMutableIterator
Definition: capi.h:75
TessLSTMBoxRendererCreate
TESS_API TessResultRenderer * TessLSTMBoxRendererCreate(const char *outputbase)
Definition: capi.cpp:96
TessBaseAPIReadConfigFile
TESS_API void TessBaseAPIReadConfigFile(TessBaseAPI *handle, const char *filename)
Definition: capi.cpp:330
OEM_TESSERACT_LSTM_COMBINED
Definition: capi.h:80
PT_VERTICAL_TEXT
Definition: capi.h:115
PT_COUNT
Definition: capi.h:123
RIL_SYMBOL
Definition: capi.h:105
TessBaseAPIMeanTextConf
TESS_API int TessBaseAPIMeanTextConf(TessBaseAPI *handle)
Definition: capi.cpp:539
TessBaseAPIGetLoadedLanguagesAsVector
TESS_API char ** TessBaseAPIGetLoadedLanguagesAsVector(const TessBaseAPI *handle)
Definition: capi.cpp:295
resultiterator.h
TessBaseAPISetMinOrientationMargin
TESS_API void TessBaseAPISetMinOrientationMargin(TessBaseAPI *handle, double margin)
Definition: capi.cpp:660
TessChoiceIteratorNext
TESS_API BOOL TessChoiceIteratorNext(TessChoiceIterator *handle)
Definition: capi.cpp:865
PSM_SINGLE_COLUMN
Definition: capi.h:88
TessBaseAPIGetStrips
TESS_API struct Boxa * TessBaseAPIGetStrips(TessBaseAPI *handle, struct Pixa **pixa, int **blockids)
Definition: capi.cpp:418
PSM_SINGLE_LINE
Definition: capi.h:91
TessBaseAPIClear
TESS_API void TessBaseAPIClear(TessBaseAPI *handle)
Definition: capi.cpp:555
TessPageIteratorBaseline
TESS_API BOOL TessPageIteratorBaseline(const TessPageIterator *handle, TessPageIteratorLevel level, int *x1, int *y1, int *x2, int *y2)
Definition: capi.cpp:728
TessResultIteratorSymbolIsSuperscript
TESS_API BOOL TessResultIteratorSymbolIsSuperscript(const TessResultIterator *handle)
Definition: capi.cpp:847
TessResultIteratorNext
TESS_API BOOL TessResultIteratorNext(TessResultIterator *handle, TessPageIteratorLevel level)
Definition: capi.cpp:782
TessBaseAPIGetWordStrBoxText
TESS_API char * TessBaseAPIGetWordStrBoxText(TessBaseAPI *handle, int page_number)
Definition: capi.cpp:525
TessBaseAPISetInputImage
TESS_API void TessBaseAPISetInputImage(TessBaseAPI *handle, struct Pix *pix)
Definition: capi.cpp:166
TessPageIteratorBoundingBox
TESS_API BOOL TessPageIteratorBoundingBox(const TessPageIterator *handle, TessPageIteratorLevel level, int *left, int *top, int *right, int *bottom)
Definition: capi.cpp:706
tesseract::OcrEngineMode
OcrEngineMode
Definition: publictypes.h:265
TessBaseAPIDelete
TESS_API void TessBaseAPIDelete(TessBaseAPI *handle)
Definition: capi.cpp:148
TessPageIteratorBlockType
TESS_API TessPolyBlockType TessPageIteratorBlockType(const TessPageIterator *handle)
Definition: capi.cpp:713
TessBaseAPISetImage2
TESS_API void TessBaseAPISetImage2(TessBaseAPI *handle, struct Pix *pix)
Definition: capi.cpp:374
TessBaseAPIEnd
TESS_API void TessBaseAPIEnd(TessBaseAPI *handle)
Definition: capi.cpp:559
TessResultRendererEndDocument
TESS_API BOOL TessResultRendererEndDocument(TessResultRenderer *renderer)
Definition: capi.cpp:125
ETEXT_DESC::cancel_this
void * cancel_this
monitor-aware progress callback
Definition: ocrclass.h:109
TessResultRendererBeginDocument
TESS_API BOOL TessResultRendererBeginDocument(TessResultRenderer *renderer, const char *title)
Definition: capi.cpp:114
tesseract::TextlineOrder
TextlineOrder
Definition: publictypes.h:148
TessMonitorSetCancelFunc
TESS_API void TessMonitorSetCancelFunc(ETEXT_DESC *monitor, TessCancelFunc cancelFunc)
Definition: capi.cpp:887
TessResultRendererImageNum
TESS_API int TessResultRendererImageNum(TessResultRenderer *renderer)
Definition: capi.cpp:140
TessBaseAPIProcessPages
TESS_API BOOL TessBaseAPIProcessPages(TessBaseAPI *handle, const char *filename, const char *retry_config, int timeout_millisec, TessResultRenderer *renderer)
Definition: capi.cpp:472
PT_EQUATION
Definition: capi.h:112
baseapi.h
TessMakeTessOCRRow
ROW * TessMakeTessOCRRow(float baseline, float xheight, float descender, float ascender)
Definition: capi.cpp:636
PSM_SINGLE_BLOCK_VERT_TEXT
Definition: capi.h:89
TessBaseAPISetProbabilityInContextFunc
void TessBaseAPISetProbabilityInContextFunc(TessBaseAPI *handle, TessProbabilityInContextFunc f)
Definition: capi.cpp:584
TessBaseAPIInitLangMod
TESS_API int TessBaseAPIInitLangMod(TessBaseAPI *handle, const char *datapath, const char *language)
Definition: capi.cpp:319
TessBaseAPIGetComponentImages
TESS_API struct Boxa * TessBaseAPIGetComponentImages(TessBaseAPI *handle, TessPageIteratorLevel level, BOOL text_only, struct Pixa **pixa, int **blockids)
Definition: capi.cpp:434
TessBaseAPIGetInputImage
TESS_API struct Pix * TessBaseAPIGetInputImage(TessBaseAPI *handle)
Definition: capi.cpp:171
TessBaseAPIIsValidWord
TESS_API int TessBaseAPIIsValidWord(TessBaseAPI *handle, const char *word)
Definition: capi.cpp:563
BOOL
#define BOOL
Definition: capi.h:43
TessMonitorGetProgress
TESS_API int TessMonitorGetProgress(ETEXT_DESC *monitor)
Definition: capi.cpp:906
TessBaseAPIClearAdaptiveClassifier
TESS_API void TessBaseAPIClearAdaptiveClassifier(TessBaseAPI *handle)
Definition: capi.cpp:361
PT_HEADING_TEXT
Definition: capi.h:110
TessResultIteratorWordIsNumeric
TESS_API BOOL TessResultIteratorWordIsNumeric(const TessResultIterator *handle)
Definition: capi.cpp:842
tesseract::TessBaseAPI
Definition: baseapi.h:98
TessBaseAPISetOutputName
TESS_API void TessBaseAPISetOutputName(TessBaseAPI *handle, const char *name)
Definition: capi.cpp:183
ORIENTATION_PAGE_RIGHT
Definition: capi.h:127
TessFindRowForBox
ROW * TessFindRowForBox(BLOCK_LIST *blocks, int left, int top, int right, int bottom)
Definition: capi.cpp:607
TessResultRendererNext
TESS_API TessResultRenderer * TessResultRendererNext(TessResultRenderer *renderer)
Definition: capi.cpp:110
TessWritingDirection
TessWritingDirection
Definition: capi.h:137
TessBaseAPISetPageSegMode
TESS_API void TessBaseAPISetPageSegMode(TessBaseAPI *handle, TessPageSegMode mode)
Definition: capi.cpp:340
TessResultIteratorDelete
TESS_API void TessResultIteratorDelete(TessResultIterator *handle)
Definition: capi.cpp:758
TessBaseAPIAnalyseLayout
TESS_API TessPageIterator * TessBaseAPIAnalyseLayout(TessBaseAPI *handle)
Definition: capi.cpp:456
TessResultIteratorGetPageIterator
TESS_API TessPageIterator * TessResultIteratorGetPageIterator(TessResultIterator *handle)
Definition: capi.cpp:768
TEXTLINE_ORDER_RIGHT_TO_LEFT
Definition: capi.h:144
tesseract::PageIteratorLevel
PageIteratorLevel
Definition: publictypes.h:216
pageiterator.h
TessOrientation
TessOrientation
Definition: capi.h:125
TessPageIteratorIsAtFinalElement
TESS_API BOOL TessPageIteratorIsAtFinalElement(const TessPageIterator *handle, TessPageIteratorLevel level, TessPageIteratorLevel element)
Definition: capi.cpp:700
TessResultIteratorGetUTF8Text
TESS_API char * TessResultIteratorGetUTF8Text(const TessResultIterator *handle, TessPageIteratorLevel level)
Definition: capi.cpp:787
TessMonitorSetCancelThis
TESS_API void TessMonitorSetCancelThis(ETEXT_DESC *monitor, void *cancelThis)
Definition: capi.cpp:892
TessBaseAPIPrintVariables
TESS_API void TessBaseAPIPrintVariables(const TessBaseAPI *handle, FILE *fp)
Definition: capi.cpp:228
TessAltoRendererCreate
TESS_API TessResultRenderer * TessAltoRendererCreate(const char *outputbase)
Definition: capi.cpp:66
TessBaseAPISetThresholder
void TessBaseAPISetThresholder(TessBaseAPI *handle, TessImageThresholder *thresholder)
Definition: capi.cpp:390
TessBaseAPIGetOpenCLDevice
TESS_API size_t TessBaseAPIGetOpenCLDevice(TessBaseAPI *handle, void **device)
Definition: capi.cpp:152
TessBaseAPIRecognizeForChopTest
TESS_API int TessBaseAPIRecognizeForChopTest(TessBaseAPI *handle, ETEXT_DESC *monitor)
Definition: capi.cpp:466
TessParagraphJustification
TessParagraphJustification
Definition: capi.h:131
TessBaseAPIProcessPage
TESS_API BOOL TessBaseAPIProcessPage(TessBaseAPI *handle, struct Pix *pix, int page_index, const char *filename, const char *retry_config, int timeout_millisec, TessResultRenderer *renderer)
Definition: capi.cpp:481
TessBaseAPIGetStringVariable
const TESS_API char * TessBaseAPIGetStringVariable(const TessBaseAPI *handle, const char *name)
Definition: capi.cpp:224
TessPageSegMode
TessPageSegMode
Definition: capi.h:83
TessResultIterator
struct TessResultIterator TessResultIterator
Definition: capi.h:74
TessBaseAPIGetLSTMBoxText
TESS_API char * TessBaseAPIGetLSTMBoxText(TessBaseAPI *handle, int page_number)
Definition: capi.cpp:530
PSM_SPARSE_TEXT_OSD
Definition: capi.h:96
RIL_TEXTLINE
Definition: capi.h:103
TessBaseAPIGetUTF8Text
TESS_API char * TessBaseAPIGetUTF8Text(TessBaseAPI *handle)
Definition: capi.cpp:501
PT_VERT_LINE
Definition: capi.h:121
TessBaseAPIGetMutableIterator
TESS_API TessMutableIterator * TessBaseAPIGetMutableIterator(TessBaseAPI *handle)
Definition: capi.cpp:497
TessBaseAPIGetIterator
TESS_API TessResultIterator * TessBaseAPIGetIterator(TessBaseAPI *handle)
Definition: capi.cpp:492
TessPageIteratorCopy
TESS_API TessPageIterator * TessPageIteratorCopy(const TessPageIterator *handle)
Definition: capi.cpp:682
TessBaseAPIGetUNLVText
TESS_API char * TessBaseAPIGetUNLVText(TessBaseAPI *handle)
Definition: capi.cpp:535
PT_UNKNOWN
Definition: capi.h:108
TessResultIteratorWordIsFromDictionary
TESS_API BOOL TessResultIteratorWordIsFromDictionary(const TessResultIterator *handle)
Definition: capi.cpp:837
TessPageIteratorLevel
TessPageIteratorLevel
Definition: capi.h:100
ORIENTATION_PAGE_DOWN
Definition: capi.h:128
TessPageIteratorIsAtBeginningOf
TESS_API BOOL TessPageIteratorIsAtBeginningOf(const TessPageIterator *handle, TessPageIteratorLevel level)
Definition: capi.cpp:695
TessBaseAPIInit2
TESS_API int TessBaseAPIInit2(TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode oem)
Definition: capi.cpp:276
TessResultIteratorGetChoiceIterator
TESS_API TessChoiceIterator * TessResultIteratorGetChoiceIterator(const TessResultIterator *handle)
Definition: capi.cpp:778
TessBaseAPIInit3
TESS_API int TessBaseAPIInit3(TessBaseAPI *handle, const char *datapath, const char *language)
Definition: capi.cpp:283
JUSTIFICATION_CENTER
Definition: capi.h:134
TessBaseAPIGetThresholdedImage
TESS_API struct Pix * TessBaseAPIGetThresholdedImage(TessBaseAPI *handle)
Definition: capi.cpp:396
tesseract::ResultIterator
Definition: resultiterator.h:44
TessBaseAPIRect
TESS_API char * TessBaseAPIRect(TessBaseAPI *handle, const unsigned char *imagedata, int bytes_per_pixel, int bytes_per_line, int left, int top, int width, int height)
Definition: capi.cpp:350
JUSTIFICATION_RIGHT
Definition: capi.h:135
TessBaseAPISetRectangle
TESS_API void TessBaseAPISetRectangle(TessBaseAPI *handle, int left, int top, int width, int height)
Definition: capi.cpp:384
TessBaseAPIInitForAnalysePage
TESS_API void TessBaseAPIInitForAnalysePage(TessBaseAPI *handle)
Definition: capi.cpp:326
PT_PULLOUT_IMAGE
Definition: capi.h:119
TessPageIteratorDelete
TESS_API void TessPageIteratorDelete(TessPageIterator *handle)
Definition: capi.cpp:677
TessBaseAPIGetBoolVariable
TESS_API BOOL TessBaseAPIGetBoolVariable(const TessBaseAPI *handle, const char *name, BOOL *value)
Definition: capi.cpp:206
renderer.h
TessDeleteIntArray
TESS_API void TessDeleteIntArray(const int *arr)
Definition: capi.cpp:40
TessBoxTextRendererCreate
TESS_API TessResultRenderer * TessBoxTextRendererCreate(const char *outputbase)
Definition: capi.cpp:86
TessVersion
const TESS_API char * TessVersion()
Definition: capi.cpp:25
TessBaseAPIGetThresholdedImageScaleFactor
TESS_API int TessBaseAPIGetThresholdedImageScaleFactor(const TessBaseAPI *handle)
Definition: capi.cpp:451
tesseract::TessResultRenderer
Definition: renderer.h:49
tesseract::Dawg
Definition: dawg.h:113
INT_FEATURE_STRUCT
Definition: intproto.h:131
ocrclass.h
OEM_LSTM_ONLY
Definition: capi.h:79
TBLOB
Definition: blobs.h:282
TessBaseAPIGetInputName
const TESS_API char * TessBaseAPIGetInputName(TessBaseAPI *handle)
Definition: capi.cpp:162
tesseract::PageSegMode
PageSegMode
Definition: publictypes.h:159
TessBaseAPIPrintVariablesToFile
TESS_API BOOL TessBaseAPIPrintVariablesToFile(const TessBaseAPI *handle, const char *filename)
Definition: capi.cpp:233
TessHOcrRendererCreate2
TESS_API TessResultRenderer * TessHOcrRendererCreate2(const char *outputbase, BOOL font_info)
Definition: capi.cpp:61
TessBaseAPIGetIntVariable
TESS_API BOOL TessBaseAPIGetIntVariable(const TessBaseAPI *handle, const char *name, int *value)
Definition: capi.cpp:200
TessResultRendererInsert
TESS_API void TessResultRendererInsert(TessResultRenderer *renderer, TessResultRenderer *next)
Definition: capi.cpp:104
TessResultRendererExtention
const TESS_API char * TessResultRendererExtention(TessResultRenderer *renderer)
Definition: capi.cpp:130
TessBaseAPIInit4
TESS_API int TessBaseAPIInit4(TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode mode, char **configs, int configs_size, char **vars_vec, char **vars_values, size_t vars_vec_size, BOOL set_only_non_debug_params)
Definition: capi.cpp:250
TessPolyBlockType
TessPolyBlockType
Definition: capi.h:107
ROW
Definition: ocrrow.h:35
TessBaseAPISetSourceResolution
TESS_API void TessBaseAPISetSourceResolution(TessBaseAPI *handle, int ppi)
Definition: capi.cpp:379
PT_FLOWING_TEXT
Definition: capi.h:109
TessBaseAPIClearPersistentCache
void TessBaseAPIClearPersistentCache(TessBaseAPI *)
Definition: capi.cpp:580
TessTextlineOrder
TessTextlineOrder
Definition: capi.h:142
TessResultIteratorWordFontAttributes
const TESS_API char * TessResultIteratorWordFontAttributes(const TessResultIterator *handle, BOOL *is_bold, BOOL *is_italic, BOOL *is_underlined, BOOL *is_monospace, BOOL *is_serif, BOOL *is_smallcaps, int *pointsize, int *font_id)
Definition: capi.cpp:802
TessBaseAPIGetFeaturesForBlob
void TessBaseAPIGetFeaturesForBlob(TessBaseAPI *handle, TBLOB *blob, INT_FEATURE_STRUCT *int_features, int *num_features, int *FeatureOutlineIndex)
Definition: capi.cpp:600
TessBaseAPIGetTextDirection
TESS_API BOOL TessBaseAPIGetTextDirection(TessBaseAPI *handle, int *out_offset, float *out_slope)
Definition: capi.cpp:568
TESS_API
#define TESS_API
Definition: platform.h:54
tesseract::MutableIterator
Definition: mutableiterator.h:44
TessResultIteratorCopy
TESS_API TessResultIterator * TessResultIteratorCopy(const TessResultIterator *handle)
Definition: capi.cpp:763
TessChoiceIteratorGetUTF8Text
const TESS_API char * TessChoiceIteratorGetUTF8Text(const TessChoiceIterator *handle)
Definition: capi.cpp:870
ORIENTATION_PAGE_LEFT
Definition: capi.h:129
PSM_COUNT
Definition: capi.h:98
TessProgressFunc
bool(* TessProgressFunc)(ETEXT_DESC *ths, int left, int right, int top, int bottom)
Definition: capi.h:151
TessNormalizeTBLOB
void TessNormalizeTBLOB(TBLOB *tblob, ROW *row, BOOL numeric_mode)
Definition: capi.cpp:645
WRITING_DIRECTION_LEFT_TO_RIGHT
Definition: capi.h:138
TessBaseAPIGetTsvText
TESS_API char * TessBaseAPIGetTsvText(TessBaseAPI *handle, int page_number)
Definition: capi.cpp:515
TessBaseAPIGetBoxText
TESS_API char * TessBaseAPIGetBoxText(TessBaseAPI *handle, int page_number)
Definition: capi.cpp:520
PSM_CIRCLE_WORD
Definition: capi.h:93
RIL_PARA
Definition: capi.h:102
TessBaseAPIInit1
TESS_API int TessBaseAPIInit1(TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode oem, char **configs, int configs_size)
Definition: capi.cpp:267
TessBaseAPIGetDatapath
const TESS_API char * TessBaseAPIGetDatapath(TessBaseAPI *handle)
Definition: capi.cpp:179
TessBaseAPIRunAdaptiveClassifier
void TessBaseAPIRunAdaptiveClassifier(TessBaseAPI *handle, TBLOB *blob, int num_max_matches, int *unichar_ids, float *ratings, int *num_matches_returned)
Definition: capi.cpp:612
PT_PULLOUT_TEXT
Definition: capi.h:111
TessBaseAPISetImage
TESS_API void TessBaseAPISetImage(TessBaseAPI *handle, const unsigned char *imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
Definition: capi.cpp:366
TessMonitorGetCancelThis
TESS_API void * TessMonitorGetCancelThis(ETEXT_DESC *monitor)
Definition: capi.cpp:897
TessBaseAPIGetUnichar
const TESS_API char * TessBaseAPIGetUnichar(TessBaseAPI *handle, int unichar_id)
Definition: capi.cpp:621
TessBaseAPI
struct TessBaseAPI TessBaseAPI
Definition: capi.h:72
TessBaseAPIFindLinesCreateBlockList
BLOCK_LIST * TessBaseAPIFindLinesCreateBlockList(TessBaseAPI *handle)
Definition: capi.cpp:672
TessBaseAPICreate
TESS_API TessBaseAPI * TessBaseAPICreate()
Definition: capi.cpp:144
PolyBlockType
PolyBlockType
Definition: publictypes.h:52
PSM_SINGLE_CHAR
Definition: capi.h:94
RIL_BLOCK
Definition: capi.h:101
TessCancelFunc
bool(* TessCancelFunc)(void *cancel_this, int words)
Definition: capi.h:150
TessBaseAPIGetPageSegMode
TESS_API TessPageSegMode TessBaseAPIGetPageSegMode(const TessBaseAPI *handle)
Definition: capi.cpp:346
TessPageIteratorParagraphInfo
TESS_API void TessPageIteratorParagraphInfo(TessPageIterator *handle, TessParagraphJustification *justification, BOOL *is_list_item, BOOL *is_crown, int *first_line_indent)
Definition: capi.cpp:743
TessDeleteBlockList
void TessDeleteBlockList(BLOCK_LIST *block_list)
Definition: capi.cpp:45
ORIENTATION_PAGE_UP
Definition: capi.h:126
tesseract::Orientation
Orientation
Definition: publictypes.h:116
PT_HORZ_LINE
Definition: capi.h:120
TessBaseAPIAdaptToWordStr
TESS_API BOOL TessBaseAPIAdaptToWordStr(TessBaseAPI *handle, TessPageSegMode mode, const char *wordstr)
Definition: capi.cpp:548
tesseract::TruthCallback
std::function< void(const UNICHARSET &, int, PageIterator *, Pix *)> TruthCallback
Definition: baseapi.h:88
tesseract::ImageThresholder
Definition: thresholder.h:35
TEXTLINE_ORDER_LEFT_TO_RIGHT
Definition: capi.h:143
TessMonitorDelete
TESS_API void TessMonitorDelete(ETEXT_DESC *monitor)
Definition: capi.cpp:883
TessResultRenderer
struct TessResultRenderer TessResultRenderer
Definition: capi.h:71
TessResultIteratorSymbolIsSubscript
TESS_API BOOL TessResultIteratorSymbolIsSubscript(const TessResultIterator *handle)
Definition: capi.cpp:852
tesseract::FillLatticeFunc
void(Wordrec::*)(const MATRIX &, const WERD_CHOICE_LIST &, const UNICHARSET &, BlamerBundle *) FillLatticeFunc
Definition: baseapi.h:86
PSM_SINGLE_WORD
Definition: capi.h:92
TessPageIteratorGetImage
TESS_API struct Pix * TessPageIteratorGetImage(const TessPageIterator *handle, TessPageIteratorLevel level, int padding, struct Pix *original_image, int *left, int *top)
Definition: capi.cpp:722
TessBaseAPIInitTruthCallback
void TessBaseAPIInitTruthCallback(TessBaseAPI *handle, TessTruthCallback cb)
Definition: capi.cpp:655
OEM_TESSERACT_ONLY
Definition: capi.h:78
TessBaseAPIDetectOrientationScript
BOOL TessBaseAPIDetectOrientationScript(TessBaseAPI *handle, int *orient_deg, float *orient_conf, const char **script_name, float *script_conf)
Definition: capi.cpp:591
TessResultIteratorWordRecognitionLanguage
const TESS_API char * TessResultIteratorWordRecognitionLanguage(const TessResultIterator *handle)
Definition: capi.cpp:798
OEM_DEFAULT
Definition: capi.h:81
TessBaseAPISetVariable
TESS_API BOOL TessBaseAPISetVariable(TessBaseAPI *handle, const char *name, const char *value)
Definition: capi.cpp:188
TessBaseAPIGetTextlines1
TESS_API struct Boxa * TessBaseAPIGetTextlines1(TessBaseAPI *handle, BOOL raw_image, int raw_padding, struct Pixa **pixa, int **blockids, int **paraids)
Definition: capi.cpp:411
TessResultRendererTitle
const TESS_API char * TessResultRendererTitle(TessResultRenderer *renderer)
Definition: capi.cpp:135
TessPageIteratorBegin
TESS_API void TessPageIteratorBegin(TessPageIterator *handle)
Definition: capi.cpp:686
PSM_SPARSE_TEXT
Definition: capi.h:95