#include <cube_reco_context.h>
Definition at line 43 of file cube_reco_context.h.
 
      
        
          | 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;
 
 
 
 
      
        
          | tesseract::CubeRecoContext::~CubeRecoContext  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 57 of file cube_reco_context.cpp.
   58   if (char_classifier_ != 
NULL) {
 
   59     delete char_classifier_;
 
   60     char_classifier_ = 
NULL;
 
   63   if (word_size_model_ != 
NULL) {
 
   64     delete word_size_model_;
 
   65     word_size_model_ = 
NULL;
 
   68   if (char_set_ != 
NULL) {
 
   73   if (char_bigrams_ != 
NULL) {
 
   78   if (word_unigrams_ != 
NULL) {
 
   79     delete word_unigrams_;
 
   80     word_unigrams_ = 
NULL;
 
   83   if (lang_mod_ != 
NULL) {
 
   88   if (params_ != 
NULL) {
 
 
 
 
  
  
      
        
          | CharBigrams* tesseract::CubeRecoContext::Bigrams  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool tesseract::CubeRecoContext::CaseSensitive  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | CharSet* tesseract::CubeRecoContext::CharacterSet  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool tesseract::CubeRecoContext::Contextual  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
Creates a CubeRecoContext object using a tesseract object 
Definition at line 188 of file cube_reco_context.cpp.
  194     fprintf(stderr, 
"Cube ERROR (CubeRecoContext::Create): unable to create " 
  195             "CubeRecoContext object\n");
 
  199   if (cntxt->Load(tessdata_manager, tess_unicharset) == 
false) {
 
  200     fprintf(stderr, 
"Cube ERROR (CubeRecoContext::Create): unable to init " 
  201             "CubeRecoContext object\n");
 
CubeRecoContext(Tesseract *tess_obj)
 
 
 
 
  
  
      
        
          | bool tesseract::CubeRecoContext::Cursive  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | 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 98 of file cube_reco_context.cpp.
const char * string() const 
 
 
 
 
  
  
      
        
          | bool tesseract::CubeRecoContext::HasCase  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool tesseract::CubeRecoContext::HasItalics  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | 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: