#include <cube_reco_context.h>
List of all members.
Detailed Description
Definition at line 43 of file cube_reco_context.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
tesseract::CubeRecoContext::CubeRecoContext |
( |
Tesseract * |
tess_obj | ) |
|
Definition at line 40 of file cube_reco_context.cpp.
{
tess_obj_ = tess_obj;
lang_ = "";
loaded_ = false;
noisy_input_ = false;
size_normalization_ = false;
}
tesseract::CubeRecoContext::~CubeRecoContext |
( |
| ) |
|
Definition at line 55 of file cube_reco_context.cpp.
{
if (char_classifier_ !=
NULL) {
delete char_classifier_;
}
if (word_size_model_ !=
NULL) {
delete word_size_model_;
}
delete char_set_;
}
if (char_bigrams_ !=
NULL) {
delete char_bigrams_;
}
if (word_unigrams_ !=
NULL) {
delete word_unigrams_;
}
delete lang_mod_;
}
delete params_;
}
}
Member Function Documentation
CharBigrams* tesseract::CubeRecoContext::Bigrams |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::CaseSensitive |
( |
| ) |
const |
|
inline |
CharSet* tesseract::CubeRecoContext::CharacterSet |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::Contextual |
( |
| ) |
const |
|
inline |
Definition at line 182 of file cube_reco_context.cpp.
{
fprintf(stderr, "Cube ERROR (CubeRecoContext::Create): unable to create "
"CubeRecoContext object\n");
}
if (cntxt->Load(tessdata_manager, tess_unicharset) == false) {
fprintf(stderr, "Cube ERROR (CubeRecoContext::Create): unable to init "
"CubeRecoContext object\n");
delete cntxt;
}
return cntxt;
}
bool tesseract::CubeRecoContext::Cursive |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::GetDataFilePath |
( |
string * |
path | ) |
const |
bool tesseract::CubeRecoContext::HasCase |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::HasItalics |
( |
| ) |
const |
|
inline |
Definition at line 81 of file cube_reco_context.h.
{
return (lang_ != "ara" && lang_ != "hin" && lang_ != "uk");
}
const string& tesseract::CubeRecoContext::Lang |
( |
| ) |
const |
|
inline |
LangModel* tesseract::CubeRecoContext::LangMod |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::NoisyInput |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::Numeric |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::OOD |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::Punc |
( |
| ) |
const |
|
inline |
ReadOrder tesseract::CubeRecoContext::ReadingOrder |
( |
| ) |
const |
|
inline |
void tesseract::CubeRecoContext::SetCaseSensitive |
( |
bool |
case_sensitive | ) |
|
|
inline |
void tesseract::CubeRecoContext::SetNoisyInput |
( |
bool |
noisy_input | ) |
|
|
inline |
void tesseract::CubeRecoContext::SetNumeric |
( |
bool |
numeric_enabled | ) |
|
|
inline |
void tesseract::CubeRecoContext::SetOOD |
( |
bool |
ood_enabled | ) |
|
|
inline |
void tesseract::CubeRecoContext::SetPunc |
( |
bool |
punc_enabled | ) |
|
|
inline |
void tesseract::CubeRecoContext::SetSizeNormalization |
( |
bool |
size_normalization | ) |
|
|
inline |
void tesseract::CubeRecoContext::SetWordList |
( |
bool |
word_list_enabled | ) |
|
|
inline |
bool tesseract::CubeRecoContext::SizeNormalization |
( |
| ) |
const |
|
inline |
const UNICHARSET* tesseract::CubeRecoContext::TessUnicharset |
( |
| ) |
const |
|
inline |
bool tesseract::CubeRecoContext::WordList |
( |
| ) |
const |
|
inline |
WordUnigrams* tesseract::CubeRecoContext::WordUnigramsObj |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: