tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/api/capi.cpp File Reference
#include "capi.h"
#include "genericvector.h"
#include "strngs.h"

Go to the source code of this file.

Defines

#define TESS_CAPI_INCLUDE_BASEAPI

Functions

TESS_API const char *TESS_CALL TessVersion ()
TESS_API void TESS_CALL TessDeleteText (char *text)
TESS_API void TESS_CALL TessDeleteTextArray (char **arr)
TESS_API void TESS_CALL TessDeleteIntArray (int *arr)
TESS_API void TESS_CALL TessDeleteBlockList (BLOCK_LIST *block_list)
TESS_API TessResultRenderer
*TESS_CALL 
TessTextRendererCreate ()
TESS_API TessResultRenderer
*TESS_CALL 
TessHOcrRendererCreate ()
TESS_API TessResultRenderer
*TESS_CALL 
TessPDFRendererCreate (const char *datadir)
TESS_API TessResultRenderer
*TESS_CALL 
TessUnlvRendererCreate ()
TESS_API TessResultRenderer
*TESS_CALL 
TessBoxTextRendererCreate ()
TESS_API void TESS_CALL TessDeleteResultRenderer (TessResultRenderer *renderer)
TESS_API void TESS_CALL TessResultRendererInsert (TessResultRenderer *renderer, TessResultRenderer *next)
TESS_API TessResultRenderer
*TESS_CALL 
TessResultRendererNext (TessResultRenderer *renderer)
TESS_API BOOL TESS_CALL TessResultRendererBeginDocument (TessResultRenderer *renderer, const char *title)
TESS_API BOOL TESS_CALL TessResultRendererAddImage (TessResultRenderer *renderer, TessBaseAPI *api)
TESS_API BOOL TESS_CALL TessResultRendererAddError (TessResultRenderer *renderer, TessBaseAPI *api)
TESS_API BOOL TESS_CALL TessResultRendererEndDocument (TessResultRenderer *renderer)
TESS_API BOOL TESS_CALL TessResultRendererGetOutput (TessResultRenderer *renderer, const char **data, int *data_len)
TESS_API const char *TESS_CALL TessResultRendererTypename (TessResultRenderer *renderer)
TESS_API const char *TESS_CALL TessResultRendererExtention (TessResultRenderer *renderer)
TESS_API const char *TESS_CALL TessResultRendererTitle (TessResultRenderer *renderer)
TESS_API int TESS_CALL TessResultRendererImageNum (TessResultRenderer *renderer)
TESS_API TessBaseAPI *TESS_CALL TessBaseAPICreate ()
TESS_API void TESS_CALL TessBaseAPIDelete (TessBaseAPI *handle)
TESS_API size_t TESS_CALL TessBaseAPIGetOpenCLDevice (TessBaseAPI *handle, void **device)
TESS_API void TESS_CALL TessBaseAPISetInputName (TessBaseAPI *handle, const char *name)
TESS_API const char *TESS_CALL TessBaseAPIGetInputName (TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPISetInputImage (TessBaseAPI *handle, Pix *pix)
TESS_API Pix *TESS_CALL TessBaseAPIGetInputImage (TessBaseAPI *handle)
TESS_API int TESS_CALL TessBaseAPIGetSourceYResolution (TessBaseAPI *handle)
TESS_API const char *TESS_CALL TessBaseAPIGetDatapath (TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPISetOutputName (TessBaseAPI *handle, const char *name)
TESS_API BOOL TESS_CALL TessBaseAPISetVariable (TessBaseAPI *handle, const char *name, const char *value)
TESS_API BOOL TESS_CALL TessBaseAPISetDebugVariable (TessBaseAPI *handle, const char *name, const char *value)
TESS_API BOOL TESS_CALL TessBaseAPIGetIntVariable (const TessBaseAPI *handle, const char *name, int *value)
TESS_API BOOL TESS_CALL TessBaseAPIGetBoolVariable (const TessBaseAPI *handle, const char *name, BOOL *value)
TESS_API BOOL TESS_CALL TessBaseAPIGetDoubleVariable (const TessBaseAPI *handle, const char *name, double *value)
TESS_API const char *TESS_CALL TessBaseAPIGetStringVariable (const TessBaseAPI *handle, const char *name)
TESS_API void TESS_CALL TessBaseAPIPrintVariables (const TessBaseAPI *handle, FILE *fp)
TESS_API BOOL TESS_CALL TessBaseAPIPrintVariablesToFile (const TessBaseAPI *handle, const char *filename)
TESS_API BOOL TESS_CALL TessBaseAPIGetVariableAsString (TessBaseAPI *handle, const char *name, STRING *val)
TESS_API int TESS_CALL 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)
TESS_API int TESS_CALL TessBaseAPIInit1 (TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode oem, char **configs, int configs_size)
TESS_API int TESS_CALL TessBaseAPIInit2 (TessBaseAPI *handle, const char *datapath, const char *language, TessOcrEngineMode oem)
TESS_API int TESS_CALL TessBaseAPIInit3 (TessBaseAPI *handle, const char *datapath, const char *language)
TESS_API const char *TESS_CALL TessBaseAPIGetInitLanguagesAsString (const TessBaseAPI *handle)
TESS_API char **TESS_CALL TessBaseAPIGetLoadedLanguagesAsVector (const TessBaseAPI *handle)
TESS_API char **TESS_CALL TessBaseAPIGetAvailableLanguagesAsVector (const TessBaseAPI *handle)
TESS_API int TESS_CALL TessBaseAPIInitLangMod (TessBaseAPI *handle, const char *datapath, const char *language)
TESS_API void TESS_CALL TessBaseAPIInitForAnalysePage (TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPIReadConfigFile (TessBaseAPI *handle, const char *filename)
TESS_API void TESS_CALL TessBaseAPIReadDebugConfigFile (TessBaseAPI *handle, const char *filename)
TESS_API void TESS_CALL TessBaseAPISetPageSegMode (TessBaseAPI *handle, TessPageSegMode mode)
TESS_API TessPageSegMode TESS_CALL TessBaseAPIGetPageSegMode (const TessBaseAPI *handle)
TESS_API char *TESS_CALL TessBaseAPIRect (TessBaseAPI *handle, const unsigned char *imagedata, int bytes_per_pixel, int bytes_per_line, int left, int top, int width, int height)
TESS_API void TESS_CALL TessBaseAPIClearAdaptiveClassifier (TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPISetImage (TessBaseAPI *handle, const unsigned char *imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
TESS_API void TESS_CALL TessBaseAPISetImage2 (TessBaseAPI *handle, const struct Pix *pix)
TESS_API void TESS_CALL TessBaseAPISetSourceResolution (TessBaseAPI *handle, int ppi)
TESS_API void TESS_CALL TessBaseAPISetRectangle (TessBaseAPI *handle, int left, int top, int width, int height)
TESS_API void TESS_CALL TessBaseAPISetThresholder (TessBaseAPI *handle, TessImageThresholder *thresholder)
TESS_API struct Pix *TESS_CALL TessBaseAPIGetThresholdedImage (TessBaseAPI *handle)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetRegions (TessBaseAPI *handle, struct Pixa **pixa)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetTextlines (TessBaseAPI *handle, struct Pixa **pixa, int **blockids)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetTextlines1 (TessBaseAPI *handle, const BOOL raw_image, const int raw_padding, struct Pixa **pixa, int **blockids, int **paraids)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetStrips (TessBaseAPI *handle, struct Pixa **pixa, int **blockids)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetWords (TessBaseAPI *handle, struct Pixa **pixa)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetConnectedComponents (TessBaseAPI *handle, struct Pixa **cc)
TESS_API struct Boxa *TESS_CALL TessBaseAPIGetComponentImages (TessBaseAPI *handle, TessPageIteratorLevel level, BOOL text_only, struct Pixa **pixa, int **blockids)
TESS_API struct Boxa *TESS_CALL 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)
TESS_API int TESS_CALL TessBaseAPIGetThresholdedImageScaleFactor (const TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPIDumpPGM (TessBaseAPI *handle, const char *filename)
TESS_API TessPageIterator
*TESS_CALL 
TessBaseAPIAnalyseLayout (TessBaseAPI *handle)
TESS_API int TESS_CALL TessBaseAPIRecognize (TessBaseAPI *handle, ETEXT_DESC *monitor)
TESS_API int TESS_CALL TessBaseAPIRecognizeForChopTest (TessBaseAPI *handle, ETEXT_DESC *monitor)
TESS_API char *TESS_CALL TessBaseAPIProcessPages (TessBaseAPI *handle, const char *filename, const char *retry_config, int timeout_millisec)
TESS_API BOOL TessBaseAPIProcessPages1 (TessBaseAPI *handle, const char *filename, const char *retry_config, int timeout_millisec, TessResultRenderer *renderer)
TESS_API char *TESS_CALL TessBaseAPIProcessPage (TessBaseAPI *handle, struct Pix *pix, int page_index, const char *filename, const char *retry_config, int timeout_millisec)
TESS_API BOOL TessBaseAPIProcessPage1 (TessBaseAPI *handle, struct Pix *pix, int page_index, const char *filename, const char *retry_config, int timeout_millisec, TessResultRenderer *renderer)
TESS_API TessResultIterator
*TESS_CALL 
TessBaseAPIGetIterator (TessBaseAPI *handle)
TESS_API TessMutableIterator
*TESS_CALL 
TessBaseAPIGetMutableIterator (TessBaseAPI *handle)
TESS_API char *TESS_CALL TessBaseAPIGetUTF8Text (TessBaseAPI *handle)
TESS_API char *TESS_CALL TessBaseAPIGetHOCRText (TessBaseAPI *handle, int page_number)
TESS_API char *TESS_CALL TessBaseAPIGetBoxText (TessBaseAPI *handle, int page_number)
TESS_API char *TESS_CALL TessBaseAPIGetUNLVText (TessBaseAPI *handle)
TESS_API int TESS_CALL TessBaseAPIMeanTextConf (TessBaseAPI *handle)
TESS_API int *TESS_CALL TessBaseAPIAllWordConfidences (TessBaseAPI *handle)
TESS_API BOOL TESS_CALL TessBaseAPIAdaptToWordStr (TessBaseAPI *handle, TessPageSegMode mode, const char *wordstr)
TESS_API void TESS_CALL TessBaseAPIClear (TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPIEnd (TessBaseAPI *handle)
TESS_API int TESS_CALL TessBaseAPIIsValidWord (TessBaseAPI *handle, const char *word)
TESS_API BOOL TESS_CALL TessBaseAPIGetTextDirection (TessBaseAPI *handle, int *out_offset, float *out_slope)
TESS_API void TESS_CALL TessBaseAPISetDictFunc (TessBaseAPI *handle, TessDictFunc f)
TESS_API void TESS_CALL TessBaseAPIClearPersistentCache (TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPISetProbabilityInContextFunc (TessBaseAPI *handle, TessProbabilityInContextFunc f)
TESS_API BOOL TESS_CALL TessBaseAPIDetectOS (TessBaseAPI *handle, OSResults *results)
TESS_API void TESS_CALL TessBaseAPIGetFeaturesForBlob (TessBaseAPI *handle, TBLOB *blob, INT_FEATURE_STRUCT *int_features, int *num_features, int *FeatureOutlineIndex)
TESS_API ROW *TESS_CALL TessFindRowForBox (BLOCK_LIST *blocks, int left, int top, int right, int bottom)
TESS_API void TESS_CALL TessBaseAPIRunAdaptiveClassifier (TessBaseAPI *handle, TBLOB *blob, int num_max_matches, int *unichar_ids, float *ratings, int *num_matches_returned)
TESS_API const char *TESS_CALL TessBaseAPIGetUnichar (TessBaseAPI *handle, int unichar_id)
TESS_API const TessDawg *TESS_CALL TessBaseAPIGetDawg (const TessBaseAPI *handle, int i)
TESS_API int TESS_CALL TessBaseAPINumDawgs (const TessBaseAPI *handle)
TESS_API ROW *TESS_CALL TessMakeTessOCRRow (float baseline, float xheight, float descender, float ascender)
TESS_API TBLOB *TESS_CALL TessMakeTBLOB (struct Pix *pix)
TESS_API void TESS_CALL TessNormalizeTBLOB (TBLOB *tblob, ROW *row, BOOL numeric_mode)
TESS_API TessOcrEngineMode
TESS_CALL 
TessBaseAPIOem (const TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPIInitTruthCallback (TessBaseAPI *handle, TessTruthCallback *cb)
TESS_API TessCubeRecoContext
*TESS_CALL 
TessBaseAPIGetCubeRecoContext (const TessBaseAPI *handle)
TESS_API void TESS_CALL TessBaseAPISetMinOrientationMargin (TessBaseAPI *handle, double margin)
TESS_API void TESS_CALL TessBaseGetBlockTextOrientations (TessBaseAPI *handle, int **block_orientation, bool **vertical_writing)
TESS_API BLOCK_LIST *TESS_CALL TessBaseAPIFindLinesCreateBlockList (TessBaseAPI *handle)
TESS_API void TESS_CALL TessPageIteratorDelete (TessPageIterator *handle)
TESS_API TessPageIterator
*TESS_CALL 
TessPageIteratorCopy (const TessPageIterator *handle)
TESS_API void TESS_CALL TessPageIteratorBegin (TessPageIterator *handle)
TESS_API BOOL TESS_CALL TessPageIteratorNext (TessPageIterator *handle, TessPageIteratorLevel level)
TESS_API BOOL TESS_CALL TessPageIteratorIsAtBeginningOf (const TessPageIterator *handle, TessPageIteratorLevel level)
TESS_API BOOL TESS_CALL TessPageIteratorIsAtFinalElement (const TessPageIterator *handle, TessPageIteratorLevel level, TessPageIteratorLevel element)
TESS_API BOOL TESS_CALL TessPageIteratorBoundingBox (const TessPageIterator *handle, TessPageIteratorLevel level, int *left, int *top, int *right, int *bottom)
TESS_API TessPolyBlockType
TESS_CALL 
TessPageIteratorBlockType (const TessPageIterator *handle)
TESS_API struct Pix *TESS_CALL TessPageIteratorGetBinaryImage (const TessPageIterator *handle, TessPageIteratorLevel level)
TESS_API struct Pix *TESS_CALL TessPageIteratorGetImage (const TessPageIterator *handle, TessPageIteratorLevel level, int padding, int *left, int *top)
TESS_API BOOL TESS_CALL TessPageIteratorBaseline (const TessPageIterator *handle, TessPageIteratorLevel level, int *x1, int *y1, int *x2, int *y2)
TESS_API void TESS_CALL TessPageIteratorOrientation (TessPageIterator *handle, TessOrientation *orientation, TessWritingDirection *writing_direction, TessTextlineOrder *textline_order, float *deskew_angle)
TESS_API void TESS_CALL TessResultIteratorDelete (TessResultIterator *handle)
TESS_API TessResultIterator
*TESS_CALL 
TessResultIteratorCopy (const TessResultIterator *handle)
TESS_API TessPageIterator
*TESS_CALL 
TessResultIteratorGetPageIterator (TessResultIterator *handle)
TESS_API const
TessPageIterator *TESS_CALL 
TessResultIteratorGetPageIteratorConst (const TessResultIterator *handle)
TESS_API char *TESS_CALL TessResultIteratorGetUTF8Text (const TessResultIterator *handle, TessPageIteratorLevel level)
TESS_API float TESS_CALL TessResultIteratorConfidence (const TessResultIterator *handle, TessPageIteratorLevel level)
TESS_API const char *TESS_CALL 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)
TESS_API BOOL TESS_CALL TessResultIteratorWordIsFromDictionary (const TessResultIterator *handle)
TESS_API BOOL TESS_CALL TessResultIteratorWordIsNumeric (const TessResultIterator *handle)
TESS_API BOOL TESS_CALL TessResultIteratorSymbolIsSuperscript (const TessResultIterator *handle)
TESS_API BOOL TESS_CALL TessResultIteratorSymbolIsSubscript (const TessResultIterator *handle)
TESS_API BOOL TESS_CALL TessResultIteratorSymbolIsDropcap (const TessResultIterator *handle)

Define Documentation

Definition at line 2 of file capi.cpp.


Function Documentation

TESS_API BOOL TESS_CALL TessBaseAPIAdaptToWordStr ( TessBaseAPI handle,
TessPageSegMode  mode,
const char *  wordstr 
)

Definition at line 517 of file capi.cpp.

{
    return handle->AdaptToWordStr(mode, wordstr) ? TRUE : FALSE;
}
TESS_API int* TESS_CALL TessBaseAPIAllWordConfidences ( TessBaseAPI handle)

Definition at line 512 of file capi.cpp.

{
    return handle->AllWordConfidences();
}

Definition at line 424 of file capi.cpp.

{
    return handle->AnalyseLayout();
}
TESS_API void TESS_CALL TessBaseAPIClear ( TessBaseAPI handle)

Definition at line 522 of file capi.cpp.

{
    handle->Clear();
}

Definition at line 334 of file capi.cpp.

{
    handle->ClearAdaptiveClassifier();
}

Definition at line 547 of file capi.cpp.

{
    handle->ClearPersistentCache();
}

Definition at line 125 of file capi.cpp.

{
    return new TessBaseAPI;
}
TESS_API void TESS_CALL TessBaseAPIDelete ( TessBaseAPI handle)

Definition at line 130 of file capi.cpp.

{
    delete handle;
}
TESS_API BOOL TESS_CALL TessBaseAPIDetectOS ( TessBaseAPI handle,
OSResults results 
)

Definition at line 571 of file capi.cpp.

{
    return handle->DetectOS(results) ? TRUE : FALSE;
}
TESS_API void TESS_CALL TessBaseAPIDumpPGM ( TessBaseAPI handle,
const char *  filename 
)

Definition at line 419 of file capi.cpp.

{
    handle->DumpPGM(filename);
}
TESS_API void TESS_CALL TessBaseAPIEnd ( TessBaseAPI handle)

Definition at line 527 of file capi.cpp.

{
    handle->End();
}
TESS_API BLOCK_LIST* TESS_CALL TessBaseAPIFindLinesCreateBlockList ( TessBaseAPI handle)

Definition at line 648 of file capi.cpp.

{
    return handle->FindLinesCreateBlockList();
}
TESS_API char** TESS_CALL TessBaseAPIGetAvailableLanguagesAsVector ( const TessBaseAPI handle)

Definition at line 286 of file capi.cpp.

{
    GenericVector<STRING> languages;
    handle->GetAvailableLanguagesAsVector(&languages);
    char** arr = new char*[languages.size() + 1];
    for (int index = 0; index < languages.size(); ++index)
        arr[index] = languages[index].strdup();
    arr[languages.size()] = NULL;
    return arr;
}
TESS_API BOOL TESS_CALL TessBaseAPIGetBoolVariable ( const TessBaseAPI handle,
const char *  name,
BOOL *  value 
)

Definition at line 190 of file capi.cpp.

{
    bool boolValue;
    if (handle->GetBoolVariable(name, &boolValue))
    {
        *value = boolValue ? TRUE : FALSE;
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}
TESS_API char* TESS_CALL TessBaseAPIGetBoxText ( TessBaseAPI handle,
int  page_number 
)

Definition at line 497 of file capi.cpp.

{
    return handle->GetBoxText(page_number);
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetComponentImages ( TessBaseAPI handle,
TessPageIteratorLevel  level,
BOOL  text_only,
struct Pixa **  pixa,
int **  blockids 
) [read]

Definition at line 401 of file capi.cpp.

{
    return handle->GetComponentImages(level, text_only != FALSE, pixa, blockids);
}
TESS_API struct Boxa* TESS_CALL 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 
) [read]

Definition at line 407 of file capi.cpp.

{
    return handle->GetComponentImages(level, text_only != FALSE, raw_image, raw_padding, pixa, blockids, paraids);
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetConnectedComponents ( TessBaseAPI handle,
struct Pixa **  cc 
) [read]

Definition at line 396 of file capi.cpp.

{
    return handle->GetConnectedComponents(cc);
}
TESS_API TessCubeRecoContext* TESS_CALL TessBaseAPIGetCubeRecoContext ( const TessBaseAPI handle)

Definition at line 633 of file capi.cpp.

{
    return handle->GetCubeRecoContext();
}
TESS_API const char* TESS_CALL TessBaseAPIGetDatapath ( TessBaseAPI handle)

Definition at line 165 of file capi.cpp.

{
    return handle->GetDatapath();
}
TESS_API const TessDawg* TESS_CALL TessBaseAPIGetDawg ( const TessBaseAPI handle,
int  i 
)

Definition at line 598 of file capi.cpp.

{
    return handle->GetDawg(i);
}
TESS_API BOOL TESS_CALL TessBaseAPIGetDoubleVariable ( const TessBaseAPI handle,
const char *  name,
double *  value 
)

Definition at line 204 of file capi.cpp.

{
    return handle->GetDoubleVariable(name, value) ? TRUE : FALSE;
}
TESS_API void TESS_CALL TessBaseAPIGetFeaturesForBlob ( TessBaseAPI handle,
TBLOB blob,
INT_FEATURE_STRUCT int_features,
int *  num_features,
int *  FeatureOutlineIndex 
)

Definition at line 576 of file capi.cpp.

{
    handle->GetFeaturesForBlob(blob, int_features, num_features, FeatureOutlineIndex);
}
TESS_API char* TESS_CALL TessBaseAPIGetHOCRText ( TessBaseAPI handle,
int  page_number 
)

Definition at line 492 of file capi.cpp.

{
    return handle->GetHOCRText(page_number);
}
TESS_API const char* TESS_CALL TessBaseAPIGetInitLanguagesAsString ( const TessBaseAPI handle)

Definition at line 270 of file capi.cpp.

{
    return handle->GetInitLanguagesAsString();
}
TESS_API Pix* TESS_CALL TessBaseAPIGetInputImage ( TessBaseAPI handle) [read]

Definition at line 155 of file capi.cpp.

{
    return handle->GetInputImage();
}
TESS_API const char* TESS_CALL TessBaseAPIGetInputName ( TessBaseAPI handle)

Definition at line 145 of file capi.cpp.

{
    return handle->GetInputName();
}
TESS_API BOOL TESS_CALL TessBaseAPIGetIntVariable ( const TessBaseAPI handle,
const char *  name,
int *  value 
)

Definition at line 185 of file capi.cpp.

{
    return handle->GetIntVariable(name, value) ? TRUE : FALSE;
}

Definition at line 477 of file capi.cpp.

{
    return handle->GetIterator();
}
TESS_API char** TESS_CALL TessBaseAPIGetLoadedLanguagesAsVector ( const TessBaseAPI handle)

Definition at line 275 of file capi.cpp.

{
    GenericVector<STRING> languages;
    handle->GetLoadedLanguagesAsVector(&languages);
    char** arr = new char*[languages.size() + 1];
    for (int index = 0; index < languages.size(); ++index)
        arr[index] = languages[index].strdup();
    arr[languages.size()] = NULL;
    return arr;
}

Definition at line 482 of file capi.cpp.

{
    return handle->GetMutableIterator();
}
TESS_API size_t TESS_CALL TessBaseAPIGetOpenCLDevice ( TessBaseAPI handle,
void **  device 
)

Definition at line 135 of file capi.cpp.

{
    return handle->getOpenCLDevice(device);
}

Definition at line 322 of file capi.cpp.

{
    return handle->GetPageSegMode();
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetRegions ( TessBaseAPI handle,
struct Pixa **  pixa 
) [read]

Definition at line 370 of file capi.cpp.

{
    return handle->GetRegions(pixa);
}

Definition at line 160 of file capi.cpp.

{
    return handle->GetSourceYResolution();
}
TESS_API const char* TESS_CALL TessBaseAPIGetStringVariable ( const TessBaseAPI handle,
const char *  name 
)

Definition at line 209 of file capi.cpp.

{
    return handle->GetStringVariable(name);
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetStrips ( TessBaseAPI handle,
struct Pixa **  pixa,
int **  blockids 
) [read]

Definition at line 386 of file capi.cpp.

{
    return handle->GetStrips(pixa, blockids);
}
TESS_API BOOL TESS_CALL TessBaseAPIGetTextDirection ( TessBaseAPI handle,
int *  out_offset,
float *  out_slope 
)

Definition at line 537 of file capi.cpp.

{
    return handle->GetTextDirection(out_offset, out_slope) ? TRUE : FALSE;
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetTextlines ( TessBaseAPI handle,
struct Pixa **  pixa,
int **  blockids 
) [read]

Definition at line 375 of file capi.cpp.

{
    return handle->GetTextlines(pixa, blockids);
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetTextlines1 ( TessBaseAPI handle,
const BOOL  raw_image,
const int  raw_padding,
struct Pixa **  pixa,
int **  blockids,
int **  paraids 
) [read]

Definition at line 380 of file capi.cpp.

{
    return handle->GetTextlines(raw_image, raw_padding, pixa, blockids, paraids);
}
TESS_API struct Pix* TESS_CALL TessBaseAPIGetThresholdedImage ( TessBaseAPI handle) [read]

Definition at line 365 of file capi.cpp.

{
    return handle->GetThresholdedImage();
}

Definition at line 414 of file capi.cpp.

{
    return handle->GetThresholdedImageScaleFactor();
}
TESS_API const char* TESS_CALL TessBaseAPIGetUnichar ( TessBaseAPI handle,
int  unichar_id 
)

Definition at line 593 of file capi.cpp.

{
    return handle->GetUnichar(unichar_id);
}
TESS_API char* TESS_CALL TessBaseAPIGetUNLVText ( TessBaseAPI handle)

Definition at line 502 of file capi.cpp.

{
    return handle->GetUNLVText();
}
TESS_API char* TESS_CALL TessBaseAPIGetUTF8Text ( TessBaseAPI handle)

Definition at line 487 of file capi.cpp.

{
    return handle->GetUTF8Text();
}
TESS_API BOOL TESS_CALL TessBaseAPIGetVariableAsString ( TessBaseAPI handle,
const char *  name,
STRING val 
)

Definition at line 231 of file capi.cpp.

{
    return handle->GetVariableAsString(name, val) ? TRUE : FALSE;
}
TESS_API struct Boxa* TESS_CALL TessBaseAPIGetWords ( TessBaseAPI handle,
struct Pixa **  pixa 
) [read]

Definition at line 391 of file capi.cpp.

{
    return handle->GetWords(pixa);
}
TESS_API int TESS_CALL TessBaseAPIInit1 ( TessBaseAPI handle,
const char *  datapath,
const char *  language,
TessOcrEngineMode  oem,
char **  configs,
int  configs_size 
)

Definition at line 254 of file capi.cpp.

{
    return handle->Init(datapath, language, oem, configs, configs_size, NULL, NULL, false);
}
TESS_API int TESS_CALL TessBaseAPIInit2 ( TessBaseAPI handle,
const char *  datapath,
const char *  language,
TessOcrEngineMode  oem 
)

Definition at line 260 of file capi.cpp.

{
    return handle->Init(datapath, language, oem);
}
TESS_API int TESS_CALL TessBaseAPIInit3 ( TessBaseAPI handle,
const char *  datapath,
const char *  language 
)

Definition at line 265 of file capi.cpp.

{
    return handle->Init(datapath, language);
}
TESS_API int TESS_CALL 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 at line 236 of file capi.cpp.

{
    GenericVector<STRING> varNames;
    GenericVector<STRING> varValues;
    if (vars_vec != NULL && vars_values != NULL) {
        for (size_t i = 0; i < vars_vec_size; i++) {
            varNames.push_back(STRING(vars_vec[i]));
            varValues.push_back(STRING(vars_values[i]));
        }
    }

    return handle->Init(datapath, language, mode, configs, configs_size, &varNames, &varValues, set_only_non_debug_params);
}
TESS_API void TESS_CALL TessBaseAPIInitForAnalysePage ( TessBaseAPI handle)

Definition at line 302 of file capi.cpp.

{
    handle->InitForAnalysePage();
}
TESS_API int TESS_CALL TessBaseAPIInitLangMod ( TessBaseAPI handle,
const char *  datapath,
const char *  language 
)

Definition at line 297 of file capi.cpp.

{
    return handle->InitLangMod(datapath, language);
}
TESS_API void TESS_CALL TessBaseAPIInitTruthCallback ( TessBaseAPI handle,
TessTruthCallback *  cb 
)

Definition at line 628 of file capi.cpp.

{
    handle->InitTruthCallback(cb);
}
TESS_API int TESS_CALL TessBaseAPIIsValidWord ( TessBaseAPI handle,
const char *  word 
)

Definition at line 532 of file capi.cpp.

{
    return handle->IsValidWord(word);
}
TESS_API int TESS_CALL TessBaseAPIMeanTextConf ( TessBaseAPI handle)

Definition at line 507 of file capi.cpp.

{
    return handle->MeanTextConf();
}
TESS_API int TESS_CALL TessBaseAPINumDawgs ( const TessBaseAPI handle)

Definition at line 603 of file capi.cpp.

{
    return handle->NumDawgs();
}
TESS_API TessOcrEngineMode TESS_CALL TessBaseAPIOem ( const TessBaseAPI handle)

Definition at line 623 of file capi.cpp.

{
    return handle->oem();
}
TESS_API void TESS_CALL TessBaseAPIPrintVariables ( const TessBaseAPI handle,
FILE *  fp 
)

Definition at line 214 of file capi.cpp.

{
    handle->PrintVariables(fp);
}
TESS_API BOOL TESS_CALL TessBaseAPIPrintVariablesToFile ( const TessBaseAPI handle,
const char *  filename 
)

Definition at line 219 of file capi.cpp.

{
    FILE* fp = fopen(filename, "w");
    if (fp != NULL)
    {
        handle->PrintVariables(fp);
        fclose(fp);
        return TRUE;
    }
    return FALSE;
}
TESS_API char* TESS_CALL TessBaseAPIProcessPage ( TessBaseAPI handle,
struct Pix *  pix,
int  page_index,
const char *  filename,
const char *  retry_config,
int  timeout_millisec 
)

Definition at line 458 of file capi.cpp.

{
    STRING text_out;
    if (handle->ProcessPage(pix, page_index, filename, retry_config, timeout_millisec, &text_out))
        return text_out.strdup();
    else
        return NULL;
}
TESS_API BOOL TessBaseAPIProcessPage1 ( TessBaseAPI handle,
struct Pix *  pix,
int  page_index,
const char *  filename,
const char *  retry_config,
int  timeout_millisec,
TessResultRenderer renderer 
)

Definition at line 468 of file capi.cpp.

{
    if (handle->ProcessPage(pix, page_index, filename, retry_config, timeout_millisec, renderer))
        return TRUE;
    else
        return FALSE;
}
TESS_API char* TESS_CALL TessBaseAPIProcessPages ( TessBaseAPI handle,
const char *  filename,
const char *  retry_config,
int  timeout_millisec 
)

Definition at line 439 of file capi.cpp.

{
    STRING text_out;
    if (handle->ProcessPages(filename, retry_config, timeout_millisec, &text_out))
        return text_out.strdup();
    else
        return NULL;
}
TESS_API BOOL TessBaseAPIProcessPages1 ( TessBaseAPI handle,
const char *  filename,
const char *  retry_config,
int  timeout_millisec,
TessResultRenderer renderer 
)

Definition at line 449 of file capi.cpp.

{
    if (handle->ProcessPages(filename, retry_config, timeout_millisec, renderer))    
        return TRUE;
    else
        return FALSE;
}
TESS_API void TESS_CALL TessBaseAPIReadConfigFile ( TessBaseAPI handle,
const char *  filename 
)

Definition at line 307 of file capi.cpp.

{
    handle->ReadConfigFile(filename);
}
TESS_API void TESS_CALL TessBaseAPIReadDebugConfigFile ( TessBaseAPI handle,
const char *  filename 
)

Definition at line 312 of file capi.cpp.

{
    handle->ReadDebugConfigFile(filename);
}
TESS_API int TESS_CALL TessBaseAPIRecognize ( TessBaseAPI handle,
ETEXT_DESC monitor 
)

Definition at line 429 of file capi.cpp.

{
    return handle->Recognize(monitor);
}
TESS_API int TESS_CALL TessBaseAPIRecognizeForChopTest ( TessBaseAPI handle,
ETEXT_DESC monitor 
)

Definition at line 434 of file capi.cpp.

{
    return handle->RecognizeForChopTest(monitor);
}
TESS_API char* TESS_CALL TessBaseAPIRect ( TessBaseAPI handle,
const unsigned char *  imagedata,
int  bytes_per_pixel,
int  bytes_per_line,
int  left,
int  top,
int  width,
int  height 
)

Definition at line 327 of file capi.cpp.

{
    return handle->TesseractRect(imagedata, bytes_per_pixel, bytes_per_line, left, top, width, height);
}
TESS_API void TESS_CALL TessBaseAPIRunAdaptiveClassifier ( TessBaseAPI handle,
TBLOB blob,
int  num_max_matches,
int *  unichar_ids,
float *  ratings,
int *  num_matches_returned 
)

Definition at line 587 of file capi.cpp.

{
    handle->RunAdaptiveClassifier(blob, num_max_matches, unichar_ids, ratings, num_matches_returned);
}
TESS_API BOOL TESS_CALL TessBaseAPISetDebugVariable ( TessBaseAPI handle,
const char *  name,
const char *  value 
)

Definition at line 180 of file capi.cpp.

{
    return handle->SetVariable(name, value) ? TRUE : FALSE;
}
TESS_API void TESS_CALL TessBaseAPISetDictFunc ( TessBaseAPI handle,
TessDictFunc  f 
)

Definition at line 542 of file capi.cpp.

{
    handle->SetDictFunc(f);
}
TESS_API void TESS_CALL TessBaseAPISetImage ( TessBaseAPI handle,
const unsigned char *  imagedata,
int  width,
int  height,
int  bytes_per_pixel,
int  bytes_per_line 
)

Definition at line 339 of file capi.cpp.

{
    handle->SetImage(imagedata, width, height, bytes_per_pixel, bytes_per_line);
}
TESS_API void TESS_CALL TessBaseAPISetImage2 ( TessBaseAPI handle,
const struct Pix *  pix 
)

Definition at line 345 of file capi.cpp.

{
    return handle->SetImage(pix);
}
TESS_API void TESS_CALL TessBaseAPISetInputImage ( TessBaseAPI handle,
Pix *  pix 
)

Definition at line 150 of file capi.cpp.

{
    handle->SetInputImage(pix);
}
TESS_API void TESS_CALL TessBaseAPISetInputName ( TessBaseAPI handle,
const char *  name 
)

Definition at line 140 of file capi.cpp.

{
    handle->SetInputName(name);
}
TESS_API void TESS_CALL TessBaseAPISetMinOrientationMargin ( TessBaseAPI handle,
double  margin 
)

Definition at line 638 of file capi.cpp.

{
    handle->set_min_orientation_margin(margin);
}
TESS_API void TESS_CALL TessBaseAPISetOutputName ( TessBaseAPI handle,
const char *  name 
)

Definition at line 170 of file capi.cpp.

{
    handle->SetOutputName(name);
}
TESS_API void TESS_CALL TessBaseAPISetPageSegMode ( TessBaseAPI handle,
TessPageSegMode  mode 
)

Definition at line 317 of file capi.cpp.

{
    handle->SetPageSegMode(mode);
}
TESS_API void TESS_CALL TessBaseAPISetProbabilityInContextFunc ( TessBaseAPI handle,
TessProbabilityInContextFunc  f 
)

Definition at line 552 of file capi.cpp.

{
    handle->SetProbabilityInContextFunc(f);
}
TESS_API void TESS_CALL TessBaseAPISetRectangle ( TessBaseAPI handle,
int  left,
int  top,
int  width,
int  height 
)

Definition at line 355 of file capi.cpp.

{
    handle->SetRectangle(left, top, width, height);
}
TESS_API void TESS_CALL TessBaseAPISetSourceResolution ( TessBaseAPI handle,
int  ppi 
)

Definition at line 350 of file capi.cpp.

{
    handle->SetSourceResolution(ppi);
}
TESS_API void TESS_CALL TessBaseAPISetThresholder ( TessBaseAPI handle,
TessImageThresholder *  thresholder 
)

Definition at line 360 of file capi.cpp.

{
    handle->SetThresholder(thresholder);
}
TESS_API BOOL TESS_CALL TessBaseAPISetVariable ( TessBaseAPI handle,
const char *  name,
const char *  value 
)

Definition at line 175 of file capi.cpp.

{
    return handle->SetVariable(name, value) ? TRUE : FALSE;
}
TESS_API void TESS_CALL TessBaseGetBlockTextOrientations ( TessBaseAPI handle,
int **  block_orientation,
bool **  vertical_writing 
)

Definition at line 643 of file capi.cpp.

{
    handle->GetBlockTextOrientations(block_orientation, vertical_writing);
}

Definition at line 55 of file capi.cpp.

{
    return new TessBoxTextRenderer;
}
TESS_API void TESS_CALL TessDeleteBlockList ( BLOCK_LIST *  block_list)

Definition at line 30 of file capi.cpp.

{
    TessBaseAPI::DeleteBlockList(block_list);
}
TESS_API void TESS_CALL TessDeleteIntArray ( int *  arr)

Definition at line 25 of file capi.cpp.

{
    delete [] arr;
}
TESS_API void TESS_CALL TessDeleteResultRenderer ( TessResultRenderer renderer)

Definition at line 60 of file capi.cpp.

{
    delete [] renderer;
}
TESS_API void TESS_CALL TessDeleteText ( char *  text)

Definition at line 13 of file capi.cpp.

{
    delete [] text;
}
TESS_API void TESS_CALL TessDeleteTextArray ( char **  arr)

Definition at line 18 of file capi.cpp.

{
    for (char** pos = arr; *pos != NULL; ++pos)
        delete [] *pos;
    delete [] arr;
}
TESS_API ROW* TESS_CALL TessFindRowForBox ( BLOCK_LIST *  blocks,
int  left,
int  top,
int  right,
int  bottom 
)

Definition at line 582 of file capi.cpp.

{
    return TessBaseAPI::FindRowForBox(blocks, left, top, right, bottom);
}

Definition at line 40 of file capi.cpp.

{
    return new TessHOcrRenderer;
}
TESS_API TBLOB* TESS_CALL TessMakeTBLOB ( struct Pix *  pix)

Definition at line 613 of file capi.cpp.

{
    return TessBaseAPI::MakeTBLOB(pix);
}
TESS_API ROW* TESS_CALL TessMakeTessOCRRow ( float  baseline,
float  xheight,
float  descender,
float  ascender 
)

Definition at line 608 of file capi.cpp.

{
    return TessBaseAPI::MakeTessOCRRow(baseline, xheight, descender, ascender);
}
TESS_API void TESS_CALL TessNormalizeTBLOB ( TBLOB tblob,
ROW row,
BOOL  numeric_mode 
)

Definition at line 618 of file capi.cpp.

{
    TessBaseAPI::NormalizeTBLOB(tblob, row, numeric_mode != FALSE);
}
TESS_API BOOL TESS_CALL TessPageIteratorBaseline ( const TessPageIterator handle,
TessPageIteratorLevel  level,
int *  x1,
int *  y1,
int *  x2,
int *  y2 
)

Definition at line 706 of file capi.cpp.

{
    return handle->Baseline(level, x1, y1, x2, y2) ? TRUE : FALSE;
}
TESS_API void TESS_CALL TessPageIteratorBegin ( TessPageIterator handle)

Definition at line 663 of file capi.cpp.

{
    handle->Begin();
}

Definition at line 690 of file capi.cpp.

{
    return handle->BlockType();
}
TESS_API BOOL TESS_CALL TessPageIteratorBoundingBox ( const TessPageIterator handle,
TessPageIteratorLevel  level,
int *  left,
int *  top,
int *  right,
int *  bottom 
)

Definition at line 684 of file capi.cpp.

{
    return handle->BoundingBox(level, left, top, right, bottom) ? TRUE : FALSE;
}

Definition at line 658 of file capi.cpp.

{
    return new TessPageIterator(*handle);
}
TESS_API void TESS_CALL TessPageIteratorDelete ( TessPageIterator handle)

Definition at line 653 of file capi.cpp.

{
    delete handle;
}
TESS_API struct Pix* TESS_CALL TessPageIteratorGetBinaryImage ( const TessPageIterator handle,
TessPageIteratorLevel  level 
) [read]

Definition at line 695 of file capi.cpp.

{
    return handle->GetBinaryImage(level);
}
TESS_API struct Pix* TESS_CALL TessPageIteratorGetImage ( const TessPageIterator handle,
TessPageIteratorLevel  level,
int  padding,
int *  left,
int *  top 
) [read]

Definition at line 700 of file capi.cpp.

{
    return handle->GetImage(level, padding, left, top);
}
TESS_API BOOL TESS_CALL TessPageIteratorIsAtBeginningOf ( const TessPageIterator handle,
TessPageIteratorLevel  level 
)

Definition at line 673 of file capi.cpp.

{
    return handle->IsAtBeginningOf(level) ? TRUE : FALSE;
}

Definition at line 678 of file capi.cpp.

{
    return handle->IsAtFinalElement(level, element) ? TRUE : FALSE;
}
TESS_API BOOL TESS_CALL TessPageIteratorNext ( TessPageIterator handle,
TessPageIteratorLevel  level 
)

Definition at line 668 of file capi.cpp.

{
    return handle->Next(level) ? TRUE : FALSE;
}
TESS_API void TESS_CALL TessPageIteratorOrientation ( TessPageIterator handle,
TessOrientation orientation,
TessWritingDirection writing_direction,
TessTextlineOrder textline_order,
float *  deskew_angle 
)

Definition at line 712 of file capi.cpp.

{
    handle->Orientation(orientation, writing_direction, textline_order, deskew_angle);
}
TESS_API TessResultRenderer* TESS_CALL TessPDFRendererCreate ( const char *  datadir)

Definition at line 45 of file capi.cpp.

{
    return new TessPDFRenderer(datadir);
}
TESS_API float TESS_CALL TessResultIteratorConfidence ( const TessResultIterator handle,
TessPageIteratorLevel  level 
)

Definition at line 744 of file capi.cpp.

{
    return handle->Confidence(level);
}

Definition at line 724 of file capi.cpp.

{
    return new TessResultIterator(*handle);
}

Definition at line 719 of file capi.cpp.

{
    delete handle;
}

Definition at line 729 of file capi.cpp.

{
    return handle;
}

Definition at line 734 of file capi.cpp.

{
    return handle;
}
TESS_API char* TESS_CALL TessResultIteratorGetUTF8Text ( const TessResultIterator handle,
TessPageIteratorLevel  level 
)

Definition at line 739 of file capi.cpp.

{
    return handle->GetUTF8Text(level);
}

Definition at line 791 of file capi.cpp.

{
    return handle->SymbolIsDropcap() ? TRUE : FALSE;
}

Definition at line 786 of file capi.cpp.

{
    return handle->SymbolIsSubscript() ? TRUE : FALSE;
}

Definition at line 781 of file capi.cpp.

{
    return handle->SymbolIsSuperscript() ? TRUE : FALSE;
}
TESS_API const char* TESS_CALL 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 at line 749 of file capi.cpp.

{
    bool bool_is_bold, bool_is_italic, bool_is_underlined, bool_is_monospace, bool_is_serif, bool_is_smallcaps;
    const char* ret = handle->WordFontAttributes(&bool_is_bold, &bool_is_italic, &bool_is_underlined, &bool_is_monospace, &bool_is_serif,
                                                 &bool_is_smallcaps, pointsize, font_id);
    if (is_bold)
        *is_bold = bool_is_bold ? TRUE : FALSE;
    if (is_italic)
        *is_italic = bool_is_italic ? TRUE : FALSE;
    if (is_underlined)
        *is_underlined = bool_is_underlined ? TRUE : FALSE;
    if (is_monospace)
        *is_monospace = bool_is_monospace ? TRUE : FALSE;
    if (is_serif)
        *is_serif = bool_is_serif ? TRUE : FALSE;
    if (is_smallcaps)
        *is_smallcaps = bool_is_smallcaps ? TRUE : FALSE;
    return ret;
}

Definition at line 771 of file capi.cpp.

{
    return handle->WordIsFromDictionary() ? TRUE : FALSE;
}
TESS_API BOOL TESS_CALL TessResultIteratorWordIsNumeric ( const TessResultIterator handle)

Definition at line 776 of file capi.cpp.

{
    return handle->WordIsNumeric() ? TRUE : FALSE;
}
TESS_API BOOL TESS_CALL TessResultRendererAddError ( TessResultRenderer renderer,
TessBaseAPI api 
)

Definition at line 85 of file capi.cpp.

{
    return renderer->AddError(api);
}
TESS_API BOOL TESS_CALL TessResultRendererAddImage ( TessResultRenderer renderer,
TessBaseAPI api 
)

Definition at line 80 of file capi.cpp.

{
    return renderer->AddImage(api);
}
TESS_API BOOL TESS_CALL TessResultRendererBeginDocument ( TessResultRenderer renderer,
const char *  title 
)

Definition at line 75 of file capi.cpp.

{
    return renderer->BeginDocument(title);
}

Definition at line 90 of file capi.cpp.

{
    return renderer->EndDocument();
}
TESS_API const char* TESS_CALL TessResultRendererExtention ( TessResultRenderer renderer)

Definition at line 110 of file capi.cpp.

{
    return renderer->file_extension();
}
TESS_API BOOL TESS_CALL TessResultRendererGetOutput ( TessResultRenderer renderer,
const char **  data,
int *  data_len 
)

Definition at line 95 of file capi.cpp.

{
    const char* tmp_data;
    int tmp_data_len;
    bool boolValue = renderer->GetOutput(&tmp_data, &tmp_data_len);
    *data = tmp_data;
    *data_len = tmp_data_len;
    return boolValue;
}

Definition at line 120 of file capi.cpp.

{
    return renderer->imagenum();
}
TESS_API void TESS_CALL TessResultRendererInsert ( TessResultRenderer renderer,
TessResultRenderer next 
)

Definition at line 65 of file capi.cpp.

{
    renderer->insert(next);
}

Definition at line 70 of file capi.cpp.

{
    return renderer->next();
}
TESS_API const char* TESS_CALL TessResultRendererTitle ( TessResultRenderer renderer)

Definition at line 115 of file capi.cpp.

{
    return renderer->title();
}
TESS_API const char* TESS_CALL TessResultRendererTypename ( TessResultRenderer renderer)

Definition at line 105 of file capi.cpp.

{
    return renderer->full_typename();
}

Definition at line 35 of file capi.cpp.

{
    return new TessTextRenderer;
}

Definition at line 50 of file capi.cpp.

{
    return new TessUnlvRenderer;
}
TESS_API const char* TESS_CALL TessVersion ( )

Definition at line 8 of file capi.cpp.

{
    return TessBaseAPI::Version();
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines