20 #ifndef TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_
21 #define TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_
64 int scaled_yres,
int rect_left,
int rect_top,
65 int rect_width,
int rect_height);
87 void SetLineSeparator(
const char* new_line);
90 void SetParagraphSeparator(
const char* new_para);
97 void RowAttributes(
float* row_height,
float* descenders,
98 float* ascenders)
const;
110 const char* WordFontAttributes(
bool* is_bold,
bool* is_italic,
111 bool* is_underlined,
bool* is_monospace,
112 bool* is_serif,
bool* is_smallcaps,
113 int* pointsize,
int* font_id)
const;
117 const char* WordRecognitionLanguage()
const;
123 bool WordIsFromDictionary()
const;
126 int BlanksBeforeWord()
const;
129 bool WordIsNumeric()
const;
132 bool HasBlamerInfo()
const;
136 const void* GetParamsTrainingBundle()
const;
140 const char* GetBlamerDebug()
const;
144 const char* GetBlamerMisadaptionDebug()
const;
147 bool HasTruthString()
const;
151 bool EquivalentToTruth(
const char* str)
const;
155 char* WordTruthUTF8Text()
const;
159 char* WordNormedUTF8Text()
const;
163 const char* WordLattice(
int* lattice_size)
const;
170 bool SymbolIsSuperscript()
const;
174 bool SymbolIsSubscript()
const;
178 bool SymbolIsDropcap()
const;
218 std::vector<std::vector<std::pair<const char*, float>>>*
Timesteps()
const;
226 BLOB_CHOICE_IT* choice_it_;
227 std::vector<std::pair<const char*, float>>* LSTM_choices_ =
nullptr;
228 std::vector<std::pair<const char*, float>>::iterator LSTM_choice_it_;
230 const int* tstep_index_;
232 double rating_coefficient_;
234 int blanks_before_word_;
241 #endif // TESSERACT_CCMAIN_LTR_RESULT_ITERATOR_H_