#include <cube_reco_context.h>
Definition at line 43 of file cube_reco_context.h.
◆ ReadOrder
◆ CubeRecoContext()
tesseract::CubeRecoContext::CubeRecoContext |
( |
Tesseract * |
tess_obj | ) |
|
Instantiate a CubeRecoContext object using a Tesseract object. CubeRecoContext will not take ownership of tess_obj, but will record the pointer to it and will make use of various Tesseract components (language model, flags, etc). Thus the caller should keep tess_obj alive so long as the instantiated CubeRecoContext is used.
Definition at line 42 of file cube_reco_context.cpp.
48 char_classifier_ = NULL;
50 word_size_model_ = NULL;
52 word_unigrams_ = NULL;
54 size_normalization_ =
false;
◆ ~CubeRecoContext()
tesseract::CubeRecoContext::~CubeRecoContext |
( |
| ) |
|
Definition at line 57 of file cube_reco_context.cpp.
58 delete char_classifier_;
59 char_classifier_ = NULL;
61 delete word_size_model_;
62 word_size_model_ = NULL;
70 delete word_unigrams_;
71 word_unigrams_ = NULL;
◆ Bigrams()
CharBigrams* tesseract::CubeRecoContext::Bigrams |
( |
| ) |
const |
|
inline |
◆ CaseSensitive()
bool tesseract::CubeRecoContext::CaseSensitive |
( |
| ) |
const |
|
inline |
◆ CharacterSet()
CharSet* tesseract::CubeRecoContext::CharacterSet |
( |
| ) |
const |
|
inline |
◆ Classifier()
◆ Contextual()
bool tesseract::CubeRecoContext::Contextual |
( |
| ) |
const |
|
inline |
◆ Create()
Creates a CubeRecoContext object using a tesseract object
Definition at line 169 of file cube_reco_context.cpp.
175 if (cntxt->Load(tessdata_manager, tess_unicharset) ==
false) {
176 fprintf(stderr,
"Cube ERROR (CubeRecoContext::Create): unable to init " 177 "CubeRecoContext object\n");
CubeRecoContext(Tesseract *tess_obj)
◆ Cursive()
bool tesseract::CubeRecoContext::Cursive |
( |
| ) |
const |
|
inline |
◆ GetDataFilePath()
bool tesseract::CubeRecoContext::GetDataFilePath |
( |
string * |
path | ) |
const |
Returns the path of the data files by looking up the TESSDATA_PREFIX environment variable and appending a "tessdata" directory to it
Definition at line 84 of file cube_reco_context.cpp.
const char * string() const
◆ HasCase()
bool tesseract::CubeRecoContext::HasCase |
( |
| ) |
const |
|
inline |
◆ HasItalics()
bool tesseract::CubeRecoContext::HasItalics |
( |
| ) |
const |
|
inline |
◆ Lang()
const string& tesseract::CubeRecoContext::Lang |
( |
| ) |
const |
|
inline |
◆ LangMod()
LangModel* tesseract::CubeRecoContext::LangMod |
( |
| ) |
const |
|
inline |
◆ NoisyInput()
bool tesseract::CubeRecoContext::NoisyInput |
( |
| ) |
const |
|
inline |
◆ Numeric()
bool tesseract::CubeRecoContext::Numeric |
( |
| ) |
const |
|
inline |
◆ OOD()
bool tesseract::CubeRecoContext::OOD |
( |
| ) |
const |
|
inline |
◆ Params()
◆ Punc()
bool tesseract::CubeRecoContext::Punc |
( |
| ) |
const |
|
inline |
◆ ReadingOrder()
ReadOrder tesseract::CubeRecoContext::ReadingOrder |
( |
| ) |
const |
|
inline |
◆ SetCaseSensitive()
void tesseract::CubeRecoContext::SetCaseSensitive |
( |
bool |
case_sensitive | ) |
|
|
inline |
◆ SetNoisyInput()
void tesseract::CubeRecoContext::SetNoisyInput |
( |
bool |
noisy_input | ) |
|
|
inline |
◆ SetNumeric()
void tesseract::CubeRecoContext::SetNumeric |
( |
bool |
numeric_enabled | ) |
|
|
inline |
◆ SetOOD()
void tesseract::CubeRecoContext::SetOOD |
( |
bool |
ood_enabled | ) |
|
|
inline |
◆ SetPunc()
void tesseract::CubeRecoContext::SetPunc |
( |
bool |
punc_enabled | ) |
|
|
inline |
◆ SetSizeNormalization()
void tesseract::CubeRecoContext::SetSizeNormalization |
( |
bool |
size_normalization | ) |
|
|
inline |
◆ SetWordList()
void tesseract::CubeRecoContext::SetWordList |
( |
bool |
word_list_enabled | ) |
|
|
inline |
◆ SizeModel()
◆ SizeNormalization()
bool tesseract::CubeRecoContext::SizeNormalization |
( |
| ) |
const |
|
inline |
◆ TesseractObject()
◆ TessUnicharset()
const UNICHARSET* tesseract::CubeRecoContext::TessUnicharset |
( |
| ) |
const |
|
inline |
◆ WordList()
bool tesseract::CubeRecoContext::WordList |
( |
| ) |
const |
|
inline |
◆ WordUnigramsObj()
WordUnigrams* tesseract::CubeRecoContext::WordUnigramsObj |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: