tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
18 #ifndef TESS_CAPI_INCLUDE_BASEAPI
19 # define TESS_CAPI_INCLUDE_BASEAPI
26 return TessBaseAPI::Version();
34 for (
char** pos = arr; *pos !=
nullptr; ++pos) {
44 #ifndef DISABLED_LEGACY_ENGINE
46 TessBaseAPI::DeleteBlockList(block_list);
76 const char* outputbase,
const char* datadir,
BOOL textonly) {
106 renderer->insert(next);
111 return renderer->next();
116 return static_cast<int>(renderer->BeginDocument(title));
121 return static_cast<int>(renderer->AddImage(api));
126 return static_cast<int>(renderer->EndDocument());
131 return renderer->file_extension();
136 return renderer->title();
141 return renderer->imagenum();
154 return TessBaseAPI::getOpenCLDevice(device);
159 handle->SetInputName(name);
163 return handle->GetInputName();
168 handle->SetInputImage(pix);
172 return handle->GetInputImage();
176 return handle->GetSourceYResolution();
180 return handle->GetDatapath();
185 handle->SetOutputName(name);
191 return static_cast<int>(handle->SetVariable(name, value));
197 return static_cast<int>(handle->SetDebugVariable(name, value));
203 return static_cast<int>(handle->GetIntVariable(name, value));
210 bool result = handle->GetBoolVariable(name, &boolValue);
212 *value = static_cast<int>(boolValue);
214 return static_cast<int>(result);
220 return static_cast<int>(handle->GetDoubleVariable(name, value));
225 return handle->GetStringVariable(name);
230 handle->PrintVariables(fp);
235 FILE* fp = fopen(filename,
"w");
237 handle->PrintVariables(fp);
247 return static_cast<int>(handle->GetVariableAsString(name, val));
251 TessBaseAPI* handle,
const char* datapath,
const char* language,
253 char** vars_values,
size_t vars_vec_size,
BOOL set_only_non_debug_params) {
256 if (vars_vec !=
nullptr && vars_values !=
nullptr) {
257 for (
size_t i = 0; i < vars_vec_size; i++) {
263 return handle->Init(datapath, language, mode, configs, configs_size,
264 &varNames, &varValues, set_only_non_debug_params != 0);
268 const char* datapath,
269 const char* language,
272 return handle->Init(datapath, language, oem, configs, configs_size,
nullptr,
277 const char* datapath,
278 const char* language,
280 return handle->Init(datapath, language, oem);
284 const char* datapath,
285 const char* language) {
286 return handle->Init(datapath, language);
291 return handle->GetInitLanguagesAsString();
297 handle->GetLoadedLanguagesAsVector(&languages);
298 char** arr =
new char*[languages.
size() + 1];
299 for (
int index = 0; index < languages.
size(); ++index) {
300 arr[index] = languages[index].strdup();
302 arr[languages.
size()] =
nullptr;
309 handle->GetAvailableLanguagesAsVector(&languages);
310 char** arr =
new char*[languages.
size() + 1];
311 for (
int index = 0; index < languages.
size(); ++index) {
312 arr[index] = languages[index].strdup();
314 arr[languages.
size()] =
nullptr;
318 #ifndef DISABLED_LEGACY_ENGINE
320 const char* datapath,
321 const char* language) {
322 return handle->InitLangMod(datapath, language);
327 handle->InitForAnalysePage();
331 const char* filename) {
332 handle->ReadConfigFile(filename);
336 const char* filename) {
337 handle->ReadDebugConfigFile(filename);
342 handle->SetPageSegMode(mode);
347 return handle->GetPageSegMode();
351 const unsigned char* imagedata,
353 int bytes_per_line,
int left,
int top,
354 int width,
int height) {
355 return handle->TesseractRect(imagedata, bytes_per_pixel, bytes_per_line, left,
359 #ifndef DISABLED_LEGACY_ENGINE
362 handle->ClearAdaptiveClassifier();
367 const unsigned char* imagedata,
368 int width,
int height,
370 int bytes_per_line) {
371 handle->SetImage(imagedata, width, height, bytes_per_pixel, bytes_per_line);
376 return handle->SetImage(pix);
381 handle->SetSourceResolution(ppi);
387 handle->SetRectangle(left, top, width, height);
391 TessBaseAPI* handle, TessImageThresholder* thresholder) {
392 handle->SetThresholder(thresholder);
397 return handle->GetThresholdedImage();
401 struct Pixa** pixa) {
402 return handle->GetRegions(pixa);
408 return handle->GetTextlines(pixa, blockids);
413 struct Pixa** pixa,
int** blockids,
int** paraids) {
414 return handle->GetTextlines(raw_image != 0, raw_padding, pixa, blockids,
421 return handle->GetStrips(pixa, blockids);
425 struct Pixa** pixa) {
426 return handle->GetWords(pixa);
431 return handle->GetConnectedComponents(cc);
436 struct Pixa** pixa,
int** blockids) {
437 return handle->GetComponentImages(level, static_cast<bool>(text_only), pixa,
443 const BOOL text_only,
const BOOL raw_image,
const int raw_padding,
444 struct Pixa** pixa,
int** blockids,
int** paraids) {
445 return handle->GetComponentImages(level, static_cast<bool>(text_only),
446 raw_image != 0, raw_padding, pixa, blockids,
452 return handle->GetThresholdedImageScaleFactor();
457 return handle->AnalyseLayout();
462 return handle->Recognize(monitor);
465 #ifndef DISABLED_LEGACY_ENGINE
468 return handle->RecognizeForChopTest(monitor);
473 const char* filename,
474 const char* retry_config,
475 int timeout_millisec,
477 return static_cast<int>(
478 handle->ProcessPages(filename, retry_config, timeout_millisec, renderer));
482 struct Pix* pix,
int page_index,
483 const char* filename,
484 const char* retry_config,
485 int timeout_millisec,
487 return static_cast<int>(handle->ProcessPage(
488 pix, page_index, filename, retry_config, timeout_millisec, renderer));
493 return handle->GetIterator();
498 return handle->GetMutableIterator();
502 return handle->GetUTF8Text();
507 return handle->GetHOCRText(
nullptr, page_number);
512 return handle->GetAltoText(page_number);
517 return handle->GetTSVText(page_number);
522 return handle->GetBoxText(page_number);
527 return handle->GetWordStrBoxText(page_number);
532 return handle->GetLSTMBoxText(page_number);
536 return handle->GetUNLVText();
540 return handle->MeanTextConf();
544 return handle->AllWordConfidences();
547 #ifndef DISABLED_LEGACY_ENGINE
550 const char* wordstr) {
551 return static_cast<int>(handle->AdaptToWordStr(mode, wordstr));
565 return handle->IsValidWord(word);
571 return static_cast<int>(handle->GetTextDirection(out_offset, out_slope));
576 handle->SetDictFunc(f);
581 TessBaseAPI::ClearPersistentCache();
585 TessBaseAPI* handle, TessProbabilityInContextFunc f) {
586 handle->SetProbabilityInContextFunc(f);
589 #ifndef DISABLED_LEGACY_ENGINE
592 TessBaseAPI* handle,
int* orient_deg,
float* orient_conf,
593 const char** script_name,
float* script_conf) {
595 success = handle->DetectOrientationScript(orient_deg, orient_conf,
596 script_name, script_conf);
597 return static_cast<BOOL>(success);
602 int* num_features,
int* FeatureOutlineIndex) {
603 handle->GetFeaturesForBlob(blob, int_features, num_features,
604 FeatureOutlineIndex);
608 int right,
int bottom) {
609 return TessBaseAPI::FindRowForBox(blocks, left, top, right, bottom);
614 float* ratings,
int* num_matches_returned) {
615 handle->RunAdaptiveClassifier(blob, num_max_matches, unichar_ids, ratings,
616 num_matches_returned);
619 #endif // ndef DISABLED_LEGACY_ENGINE
623 return handle->GetUnichar(unichar_id);
628 return handle->GetDawg(i);
632 return handle->NumDawgs();
635 #ifndef DISABLED_LEGACY_ENGINE
637 float descender,
float ascender) {
638 return TessBaseAPI::MakeTessOCRRow(
baseline, xheight, descender, ascender);
642 return TessBaseAPI::MakeTBLOB(pix);
647 TessBaseAPI::NormalizeTBLOB(tblob, row, static_cast<bool>(numeric_mode));
649 #endif // ndef DISABLED_LEGACY_ENGINE
652 return handle->oem();
656 TessTruthCallback cb) {
657 handle->InitTruthCallback(cb);
662 handle->set_min_orientation_margin(margin);
666 TessBaseAPI* handle,
int** block_orientation,
bool** vertical_writing) {
667 handle->GetBlockTextOrientations(block_orientation, vertical_writing);
670 #ifndef DISABLED_LEGACY_ENGINE
673 return handle->FindLinesCreateBlockList();
692 return static_cast<int>(handle->Next(level));
697 return static_cast<int>(handle->IsAtBeginningOf(level));
703 return static_cast<int>(handle->IsAtFinalElement(level, element));
708 int* top,
int* right,
int* bottom) {
709 return static_cast<int>(handle->BoundingBox(level, left, top, right, bottom));
714 return handle->BlockType();
719 return handle->GetBinaryImage(level);
724 struct Pix* original_image,
int* left,
int* top) {
725 return handle->GetImage(level, padding, original_image, left, top);
730 int* x1,
int* y1,
int* x2,
732 return static_cast<int>(handle->Baseline(level, x1, y1, x2, y2));
738 float* deskew_angle) {
739 handle->Orientation(orientation, writing_direction, textline_order,
745 BOOL* is_list_item,
BOOL* is_crown,
int* first_line_indent) {
746 bool bool_is_list_item;
748 handle->ParagraphInfo(justification, &bool_is_list_item, &bool_is_crown,
750 if (is_list_item !=
nullptr) {
751 *is_list_item = static_cast<int>(bool_is_list_item);
753 if (is_crown !=
nullptr) {
754 *is_crown = static_cast<int>(bool_is_crown);
784 return static_cast<int>(handle->Next(level));
789 return handle->GetUTF8Text(level);
794 return handle->Confidence(level);
799 return handle->WordRecognitionLanguage();
804 BOOL* is_underlined,
BOOL* is_monospace,
BOOL* is_serif,
BOOL* is_smallcaps,
805 int* pointsize,
int* font_id) {
808 bool bool_is_underlined;
809 bool bool_is_monospace;
811 bool bool_is_smallcaps;
812 const char* ret = handle->WordFontAttributes(
813 &bool_is_bold, &bool_is_italic, &bool_is_underlined, &bool_is_monospace,
814 &bool_is_serif, &bool_is_smallcaps, pointsize, font_id);
815 if (is_bold !=
nullptr) {
816 *is_bold = static_cast<int>(bool_is_bold);
818 if (is_italic !=
nullptr) {
819 *is_italic = static_cast<int>(bool_is_italic);
821 if (is_underlined !=
nullptr) {
822 *is_underlined = static_cast<int>(bool_is_underlined);
824 if (is_monospace !=
nullptr) {
825 *is_monospace = static_cast<int>(bool_is_monospace);
827 if (is_serif !=
nullptr) {
828 *is_serif = static_cast<int>(bool_is_serif);
830 if (is_smallcaps !=
nullptr) {
831 *is_smallcaps = static_cast<int>(bool_is_smallcaps);
838 return static_cast<int>(handle->WordIsFromDictionary());
843 return static_cast<int>(handle->WordIsNumeric());
848 return static_cast<int>(handle->SymbolIsSuperscript());
853 return static_cast<int>(handle->SymbolIsSubscript());
858 return static_cast<int>(handle->SymbolIsDropcap());
866 return static_cast<int>(handle->Next());
871 return handle->GetUTF8Text();
876 return handle->Confidence();
889 monitor->
cancel = cancelFunc;
int TessBaseAPIInit2(TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode oem)
struct ETEXT_DESC ETEXT_DESC
int TessBaseAPINumDawgs(const TessBaseAPI *handle)
struct Boxa * TessBaseAPIGetWords(TessBaseAPI *handle, struct Pixa **pixa)
struct TessChoiceIterator TessChoiceIterator
BOOL TessPageIteratorIsAtFinalElement(const TessPageIterator *handle, TessPageIteratorLevel level, TessPageIteratorLevel element)
int TessBaseAPIInit1(TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode oem, char **configs, int configs_size)
void TessBaseAPISetDictFunc(TessBaseAPI *handle, TessDictFunc f)
BOOL TessResultIteratorSymbolIsSuperscript(const TessResultIterator *handle)
struct Boxa * TessBaseAPIGetStrips(TessBaseAPI *handle, struct Pixa **pixa, int **blockids)
ETEXT_DESC * TessMonitorCreate()
BOOL TessBaseAPISetVariable(TessBaseAPI *handle, const char *name, const char *value)
void TessBaseGetBlockTextOrientations(TessBaseAPI *handle, int **block_orientation, bool **vertical_writing)
const char * TessBaseAPIGetDatapath(TessBaseAPI *handle)
const char * TessResultRendererTitle(TessResultRenderer *renderer)
BOOL TessResultIteratorWordIsFromDictionary(const TessResultIterator *handle)
struct TessPageIterator TessPageIterator
TessOcrEngineMode TessBaseAPIOem(const TessBaseAPI *handle)
BOOL TessPageIteratorBaseline(const TessPageIterator *handle, TessPageIteratorLevel level, int *x1, int *y1, int *x2, int *y2)
BOOL TessBaseAPIProcessPages(TessBaseAPI *handle, const char *filename, const char *retry_config, int timeout_millisec, TessResultRenderer *renderer)
TessResultRenderer * TessLSTMBoxRendererCreate(const char *outputbase)
BOOL TessChoiceIteratorNext(TessChoiceIterator *handle)
BOOL TessBaseAPIPrintVariablesToFile(const TessBaseAPI *handle, const char *filename)
TessChoiceIterator * TessResultIteratorGetChoiceIterator(const TessResultIterator *handle)
void set_deadline_msecs(int32_t deadline_msecs)
BOOL TessResultIteratorSymbolIsDropcap(const TessResultIterator *handle)
PROGRESS_FUNC2 progress_callback2
called whenever progress increases
const TessDawg * TessBaseAPIGetDawg(const TessBaseAPI *handle, int i)
const char * TessVersion()
TBLOB * TessMakeTBLOB(struct Pix *pix)
BOOL TessBaseAPIGetVariableAsString(TessBaseAPI *handle, const char *name, STRING *val)
TessResultRenderer * TessWordStrBoxRendererCreate(const char *outputbase)
BOOL TessPageIteratorNext(TessPageIterator *handle, TessPageIteratorLevel level)
TessResultRenderer * TessResultRendererNext(TessResultRenderer *renderer)
BOOL TessBaseAPISetDebugVariable(TessBaseAPI *handle, const char *name, const char *value)
TessResultRenderer * TessPDFRendererCreate(const char *outputbase, const char *datadir, BOOL textonly)
BOOL TessResultIteratorWordIsNumeric(const TessResultIterator *handle)
BOOL TessPageIteratorIsAtBeginningOf(const TessPageIterator *handle, TessPageIteratorLevel level)
TessMutableIterator * TessBaseAPIGetMutableIterator(TessBaseAPI *handle)
char * TessBaseAPIGetBoxText(TessBaseAPI *handle, int page_number)
int TessBaseAPIInit3(TessBaseAPI *handle, const char *datapath, const char *language)
void TessDeleteResultRenderer(TessResultRenderer *renderer)
float TessChoiceIteratorConfidence(const TessChoiceIterator *handle)
struct Boxa * TessBaseAPIGetTextlines(TessBaseAPI *handle, struct Pixa **pixa, int **blockids)
struct TessMutableIterator TessMutableIterator
void TessBaseAPISetSourceResolution(TessBaseAPI *handle, int ppi)
const char * TessResultRendererExtention(TessResultRenderer *renderer)
struct Pix * TessPageIteratorGetImage(const TessPageIterator *handle, TessPageIteratorLevel level, int padding, struct Pix *original_image, int *left, int *top)
void TessPageIteratorParagraphInfo(TessPageIterator *handle, TessParagraphJustification *justification, BOOL *is_list_item, BOOL *is_crown, int *first_line_indent)
BOOL TessBaseAPIAdaptToWordStr(TessBaseAPI *handle, TessPageSegMode mode, const char *wordstr)
char * TessBaseAPIGetAltoText(TessBaseAPI *handle, int page_number)
TessResultIterator * TessBaseAPIGetIterator(TessBaseAPI *handle)
void TessPageIteratorOrientation(TessPageIterator *handle, TessOrientation *orientation, TessWritingDirection *writing_direction, TessTextlineOrder *textline_order, float *deskew_angle)
float TessResultIteratorConfidence(const TessResultIterator *handle, TessPageIteratorLevel level)
void TessBaseAPISetImage2(TessBaseAPI *handle, struct Pix *pix)
TessResultRenderer * TessTsvRendererCreate(const char *outputbase)
void TessResultIteratorDelete(TessResultIterator *handle)
BOOL TessPageIteratorBoundingBox(const TessPageIterator *handle, TessPageIteratorLevel level, int *left, int *top, int *right, int *bottom)
void TessDeleteIntArray(const int *arr)
struct Boxa * TessBaseAPIGetTextlines1(TessBaseAPI *handle, const BOOL raw_image, const int raw_padding, struct Pixa **pixa, int **blockids, int **paraids)
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)
char * TessResultIteratorGetUTF8Text(const TessResultIterator *handle, TessPageIteratorLevel level)
void * cancel_this
monitor-aware progress callback
int16_t progress
chars in this buffer(0)
void TessBaseAPISetRectangle(TessBaseAPI *handle, int left, int top, int width, int height)
ROW * TessMakeTessOCRRow(float baseline, float xheight, float descender, float ascender)
void TessBaseAPISetProbabilityInContextFunc(TessBaseAPI *handle, TessProbabilityInContextFunc f)
struct Boxa * TessBaseAPIGetConnectedComponents(TessBaseAPI *handle, struct Pixa **cc)
void TessMonitorSetDeadlineMSecs(ETEXT_DESC *monitor, int deadline)
const char * TessBaseAPIGetUnichar(TessBaseAPI *handle, int unichar_id)
const char * TessChoiceIteratorGetUTF8Text(const TessChoiceIterator *handle)
TessResultRenderer * TessUnlvRendererCreate(const char *outputbase)
void TessResultRendererInsert(TessResultRenderer *renderer, TessResultRenderer *next)
void TessMonitorSetCancelThis(ETEXT_DESC *monitor, void *cancelThis)
int TessBaseAPIGetThresholdedImageScaleFactor(const TessBaseAPI *handle)
int TessResultRendererImageNum(TessResultRenderer *renderer)
void TessBaseAPIClear(TessBaseAPI *handle)
const char * TessBaseAPIGetInputName(TessBaseAPI *handle)
ROW * TessFindRowForBox(BLOCK_LIST *blocks, int left, int top, int right, int bottom)
int TessBaseAPIRecognizeForChopTest(TessBaseAPI *handle, ETEXT_DESC *monitor)
void TessBaseAPIEnd(TessBaseAPI *handle)
BOOL TessResultIteratorNext(TessResultIterator *handle, TessPageIteratorLevel level)
BOOL TessResultRendererEndDocument(TessResultRenderer *renderer)
char * TessBaseAPIGetUTF8Text(TessBaseAPI *handle)
struct Pix * TessPageIteratorGetBinaryImage(const TessPageIterator *handle, TessPageIteratorLevel level)
BOOL TessBaseAPIGetIntVariable(const TessBaseAPI *handle, const char *name, int *value)
TessResultRenderer * TessBoxTextRendererCreate(const char *outputbase)
int TessBaseAPIInitLangMod(TessBaseAPI *handle, const char *datapath, const char *language)
void TessBaseAPISetThresholder(TessBaseAPI *handle, TessImageThresholder *thresholder)
void TessBaseAPISetInputName(TessBaseAPI *handle, const char *name)
TessPageIterator * TessBaseAPIAnalyseLayout(TessBaseAPI *handle)
TessParagraphJustification
void TessDeleteTextArray(char **arr)
struct TessResultIterator TessResultIterator
Pix * TessBaseAPIGetInputImage(TessBaseAPI *handle)
BOOL TessBaseAPIGetTextDirection(TessBaseAPI *handle, int *out_offset, float *out_slope)
const char * TessBaseAPIGetInitLanguagesAsString(const TessBaseAPI *handle)
int TessBaseAPIIsValidWord(TessBaseAPI *handle, const char *word)
size_t TessBaseAPIGetOpenCLDevice(TessBaseAPI *, void **device)
TessPageSegMode TessBaseAPIGetPageSegMode(const TessBaseAPI *handle)
const 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)
char * TessBaseAPIRect(TessBaseAPI *handle, const unsigned char *imagedata, int bytes_per_pixel, int bytes_per_line, int left, int top, int width, int height)
TessResultRenderer * TessAltoRendererCreate(const char *outputbase)
void TessBaseAPISetInputImage(TessBaseAPI *handle, Pix *pix)
struct Boxa * TessBaseAPIGetComponentImages(TessBaseAPI *handle, TessPageIteratorLevel level, BOOL text_only, struct Pixa **pixa, int **blockids)
TessPageIterator * TessResultIteratorGetPageIterator(TessResultIterator *handle)
char ** TessBaseAPIGetAvailableLanguagesAsVector(const TessBaseAPI *handle)
TessResultRenderer * TessHOcrRendererCreate2(const char *outputbase, BOOL font_info)
int TessBaseAPIGetSourceYResolution(TessBaseAPI *handle)
BOOL TessResultRendererAddImage(TessResultRenderer *renderer, TessBaseAPI *api)
void TessBaseAPISetOutputName(TessBaseAPI *handle, const char *name)
void TessBaseAPISetPageSegMode(TessBaseAPI *handle, TessPageSegMode mode)
void TessPageIteratorBegin(TessPageIterator *handle)
TessPolyBlockType TessPageIteratorBlockType(const TessPageIterator *handle)
BOOL TessBaseAPIProcessPage(TessBaseAPI *handle, struct Pix *pix, int page_index, const char *filename, const char *retry_config, int timeout_millisec, TessResultRenderer *renderer)
void TessDeleteText(const char *text)
CANCEL_FUNC cancel
for errcode use
void TessBaseAPIClearPersistentCache(TessBaseAPI *)
void TessBaseAPISetImage(TessBaseAPI *handle, const unsigned char *imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
void TessBaseAPIGetFeaturesForBlob(TessBaseAPI *handle, TBLOB *blob, INT_FEATURE_STRUCT *int_features, int *num_features, int *FeatureOutlineIndex)
int * TessBaseAPIAllWordConfidences(TessBaseAPI *handle)
struct Pix * TessBaseAPIGetThresholdedImage(TessBaseAPI *handle)
void TessBaseAPIDelete(TessBaseAPI *handle)
TessResultRenderer * TessHOcrRendererCreate(const char *outputbase)
char * TessBaseAPIGetTsvText(TessBaseAPI *handle, int page_number)
char * TessBaseAPIGetUNLVText(TessBaseAPI *handle)
bool(* TessProgressFunc)(ETEXT_DESC *ths, int left, int right, int top, int bottom)
void TessBaseAPISetMinOrientationMargin(TessBaseAPI *handle, double margin)
BOOL TessBaseAPIGetDoubleVariable(const TessBaseAPI *handle, const char *name, double *value)
void TessNormalizeTBLOB(TBLOB *tblob, ROW *row, BOOL numeric_mode)
void TessBaseAPIReadDebugConfigFile(TessBaseAPI *handle, const char *filename)
char * TessBaseAPIGetWordStrBoxText(TessBaseAPI *handle, int page_number)
void TessBaseAPIRunAdaptiveClassifier(TessBaseAPI *handle, TBLOB *blob, int num_max_matches, int *unichar_ids, float *ratings, int *num_matches_returned)
char * TessBaseAPIGetHOCRText(TessBaseAPI *handle, int page_number)
BOOL TessResultRendererBeginDocument(TessResultRenderer *renderer, const char *title)
void TessPageIteratorDelete(TessPageIterator *handle)
TessPageIterator * TessPageIteratorCopy(const TessPageIterator *handle)
int TessBaseAPIRecognize(TessBaseAPI *handle, ETEXT_DESC *monitor)
void TessBaseAPIInitForAnalysePage(TessBaseAPI *handle)
struct TessBaseAPI TessBaseAPI
void TessMonitorDelete(ETEXT_DESC *monitor)
BOOL TessResultIteratorSymbolIsSubscript(const TessResultIterator *handle)
TessResultRenderer * TessTextRendererCreate(const char *outputbase)
BLOCK_LIST * TessBaseAPIFindLinesCreateBlockList(TessBaseAPI *handle)
void TessMonitorSetCancelFunc(ETEXT_DESC *monitor, TessCancelFunc cancelFunc)
bool(* TessCancelFunc)(void *cancel_this, int words)
char * TessBaseAPIGetLSTMBoxText(TessBaseAPI *handle, int page_number)
char ** TessBaseAPIGetLoadedLanguagesAsVector(const TessBaseAPI *handle)
int TessBaseAPIMeanTextConf(TessBaseAPI *handle)
void TessDeleteBlockList(BLOCK_LIST *block_list)
struct Boxa * TessBaseAPIGetRegions(TessBaseAPI *handle, struct Pixa **pixa)
int TessMonitorGetProgress(ETEXT_DESC *monitor)
void TessBaseAPIPrintVariables(const TessBaseAPI *handle, FILE *fp)
void TessChoiceIteratorDelete(TessChoiceIterator *handle)
BOOL TessBaseAPIGetBoolVariable(const TessBaseAPI *handle, const char *name, BOOL *value)
struct TessResultRenderer TessResultRenderer
void TessBaseAPIReadConfigFile(TessBaseAPI *handle, const char *filename)
void TessMonitorSetProgressFunc(ETEXT_DESC *monitor, TessProgressFunc progressFunc)
void TessBaseAPIInitTruthCallback(TessBaseAPI *handle, TessTruthCallback cb)
TessResultIterator * TessResultIteratorCopy(const TessResultIterator *handle)
TessBaseAPI * TessBaseAPICreate()
struct Boxa * TessBaseAPIGetComponentImages1(TessBaseAPI *handle, const TessPageIteratorLevel level, const BOOL text_only, const BOOL raw_image, const int raw_padding, struct Pixa **pixa, int **blockids, int **paraids)
const char * TessBaseAPIGetStringVariable(const TessBaseAPI *handle, const char *name)
BOOL TessBaseAPIDetectOrientationScript(TessBaseAPI *handle, int *orient_deg, float *orient_conf, const char **script_name, float *script_conf)
void TessBaseAPIClearAdaptiveClassifier(TessBaseAPI *handle)
void * TessMonitorGetCancelThis(ETEXT_DESC *monitor)
const char * TessResultIteratorWordRecognitionLanguage(const TessResultIterator *handle)
const TessPageIterator * TessResultIteratorGetPageIteratorConst(const TessResultIterator *handle)