tesseract  5.0.0-alpha-619-ge9db
tesseract::LTRResultIterator Class Reference

#include <ltrresultiterator.h>

Inheritance diagram for tesseract::LTRResultIterator:
tesseract::PageIterator tesseract::ResultIterator tesseract::MutableIterator

Public Member Functions

 LTRResultIterator (PAGE_RES *page_res, Tesseract *tesseract, int scale, int scaled_yres, int rect_left, int rect_top, int rect_width, int rect_height)
 
 ~LTRResultIterator () override
 
char * GetUTF8Text (PageIteratorLevel level) const
 
void SetLineSeparator (const char *new_line)
 
void SetParagraphSeparator (const char *new_para)
 
float Confidence (PageIteratorLevel level) const
 
void RowAttributes (float *row_height, float *descenders, float *ascenders) const
 
const char * WordFontAttributes (bool *is_bold, bool *is_italic, bool *is_underlined, bool *is_monospace, bool *is_serif, bool *is_smallcaps, int *pointsize, int *font_id) const
 
const char * WordRecognitionLanguage () const
 
StrongScriptDirection WordDirection () const
 
bool WordIsFromDictionary () const
 
int BlanksBeforeWord () const
 
bool WordIsNumeric () const
 
bool HasBlamerInfo () const
 
const void * GetParamsTrainingBundle () const
 
const char * GetBlamerDebug () const
 
const char * GetBlamerMisadaptionDebug () const
 
bool HasTruthString () const
 
bool EquivalentToTruth (const char *str) const
 
char * WordTruthUTF8Text () const
 
char * WordNormedUTF8Text () const
 
const char * WordLattice (int *lattice_size) const
 
bool SymbolIsSuperscript () const
 
bool SymbolIsSubscript () const
 
bool SymbolIsDropcap () const
 
- Public Member Functions inherited from tesseract::PageIterator
 PageIterator (PAGE_RES *page_res, Tesseract *tesseract, int scale, int scaled_yres, int rect_left, int rect_top, int rect_width, int rect_height)
 
virtual ~PageIterator ()
 
 PageIterator (const PageIterator &src)
 
const PageIteratoroperator= (const PageIterator &src)
 
bool PositionedAtSameWord (const PAGE_RES_IT *other) const
 
virtual void Begin ()
 
virtual void RestartParagraph ()
 
bool IsWithinFirstTextlineOfParagraph () const
 
virtual void RestartRow ()
 
virtual bool Next (PageIteratorLevel level)
 
virtual bool IsAtBeginningOf (PageIteratorLevel level) const
 
virtual bool IsAtFinalElement (PageIteratorLevel level, PageIteratorLevel element) const
 
int Cmp (const PageIterator &other) const
 
void SetBoundingBoxComponents (bool include_upper_dots, bool include_lower_dots)
 
bool BoundingBox (PageIteratorLevel level, int *left, int *top, int *right, int *bottom) const
 
bool BoundingBox (PageIteratorLevel level, int padding, int *left, int *top, int *right, int *bottom) const
 
bool BoundingBoxInternal (PageIteratorLevel level, int *left, int *top, int *right, int *bottom) const
 
bool Empty (PageIteratorLevel level) const
 
PolyBlockType BlockType () const
 
Pta * BlockPolygon () const
 
Pix * GetBinaryImage (PageIteratorLevel level) const
 
Pix * GetImage (PageIteratorLevel level, int padding, Pix *original_img, int *left, int *top) const
 
bool Baseline (PageIteratorLevel level, int *x1, int *y1, int *x2, int *y2) const
 
void Orientation (tesseract::Orientation *orientation, tesseract::WritingDirection *writing_direction, tesseract::TextlineOrder *textline_order, float *deskew_angle) const
 
void ParagraphInfo (tesseract::ParagraphJustification *justification, bool *is_list_item, bool *is_crown, int *first_line_indent) const
 
bool SetWordBlamerBundle (BlamerBundle *blamer_bundle)
 

Protected Attributes

const char * line_separator_
 
const char * paragraph_separator_
 
- Protected Attributes inherited from tesseract::PageIterator
PAGE_RESpage_res_
 
Tesseracttesseract_
 
PAGE_RES_ITit_
 
WERDword_
 
int word_length_
 
int blob_index_
 
C_BLOB_IT * cblob_it_
 
bool include_upper_dots_
 
bool include_lower_dots_
 
int scale_
 
int scaled_yres_
 
int rect_left_
 
int rect_top_
 
int rect_width_
 
int rect_height_
 

Friends

class ChoiceIterator
 

Additional Inherited Members

- Protected Member Functions inherited from tesseract::PageIterator
TESS_LOCAL void BeginWord (int offset)
 

Detailed Description

Definition at line 47 of file ltrresultiterator.h.

Constructor & Destructor Documentation

◆ LTRResultIterator()

tesseract::LTRResultIterator::LTRResultIterator ( PAGE_RES page_res,
Tesseract tesseract,
int  scale,
int  scaled_yres,
int  rect_left,
int  rect_top,
int  rect_width,
int  rect_height 
)

Definition at line 29 of file ltrresultiterator.cpp.

33  : PageIterator(page_res, tesseract, scale, scaled_yres, rect_left, rect_top,
34  rect_width, rect_height),
35  line_separator_("\n"),
36  paragraph_separator_("\n") {}

◆ ~LTRResultIterator()

tesseract::LTRResultIterator::~LTRResultIterator ( )
overridedefault

Member Function Documentation

◆ BlanksBeforeWord()

int tesseract::LTRResultIterator::BlanksBeforeWord ( ) const

Definition at line 244 of file ltrresultiterator.cpp.

244  {
245  if (it_->word() == nullptr)
246  return 1;
247  return it_->word()->word->space();
248 }

◆ Confidence()

float tesseract::LTRResultIterator::Confidence ( PageIteratorLevel  level) const

Definition at line 96 of file ltrresultiterator.cpp.

96  {
97  if (it_->word() == nullptr)
98  return 0.0f; // Already at the end!
99  float mean_certainty = 0.0f;
100  int certainty_count = 0;
101  PAGE_RES_IT res_it(*it_);
102  WERD_CHOICE* best_choice = res_it.word()->best_choice;
103  ASSERT_HOST(best_choice != nullptr);
104  switch (level) {
105  case RIL_BLOCK:
106  do {
107  best_choice = res_it.word()->best_choice;
108  ASSERT_HOST(best_choice != nullptr);
109  mean_certainty += best_choice->certainty();
110  ++certainty_count;
111  res_it.forward();
112  } while (res_it.block() == res_it.prev_block());
113  break;
114  case RIL_PARA:
115  do {
116  best_choice = res_it.word()->best_choice;
117  ASSERT_HOST(best_choice != nullptr);
118  mean_certainty += best_choice->certainty();
119  ++certainty_count;
120  res_it.forward();
121  } while (res_it.block() == res_it.prev_block() &&
122  res_it.row()->row->para() == res_it.prev_row()->row->para());
123  break;
124  case RIL_TEXTLINE:
125  do {
126  best_choice = res_it.word()->best_choice;
127  ASSERT_HOST(best_choice != nullptr);
128  mean_certainty += best_choice->certainty();
129  ++certainty_count;
130  res_it.forward();
131  } while (res_it.row() == res_it.prev_row());
132  break;
133  case RIL_WORD:
134  mean_certainty += best_choice->certainty();
135  ++certainty_count;
136  break;
137  case RIL_SYMBOL:
138  mean_certainty += best_choice->certainty(blob_index_);
139  ++certainty_count;
140  }
141  if (certainty_count > 0) {
142  mean_certainty /= certainty_count;
143  return ClipToRange(100 + 5 * mean_certainty, 0.0f, 100.0f);
144  }
145  return 0.0f;
146 }

◆ EquivalentToTruth()

bool tesseract::LTRResultIterator::EquivalentToTruth ( const char *  str) const

Definition at line 299 of file ltrresultiterator.cpp.

299  {
300  if (!HasTruthString())
301  return false;
302  ASSERT_HOST(it_->word()->uch_set != nullptr);
303  WERD_CHOICE str_wd(str, *(it_->word()->uch_set));
304  return it_->word()->blamer_bundle->ChoiceIsCorrect(&str_wd);
305 }

◆ GetBlamerDebug()

const char * tesseract::LTRResultIterator::GetBlamerDebug ( ) const

Definition at line 276 of file ltrresultiterator.cpp.

276  {
277  return it_->word()->blamer_bundle->debug().c_str();
278 }

◆ GetBlamerMisadaptionDebug()

const char * tesseract::LTRResultIterator::GetBlamerMisadaptionDebug ( ) const

Definition at line 282 of file ltrresultiterator.cpp.

282  {
283  return it_->word()->blamer_bundle->misadaption_debug().c_str();
284 }

◆ GetParamsTrainingBundle()

const void * tesseract::LTRResultIterator::GetParamsTrainingBundle ( ) const

Definition at line 267 of file ltrresultiterator.cpp.

267  {
268  return (it_->word() != nullptr && it_->word()->blamer_bundle != nullptr)
270  : nullptr;
271 }

◆ GetUTF8Text()

char * tesseract::LTRResultIterator::GetUTF8Text ( PageIteratorLevel  level) const

Definition at line 45 of file ltrresultiterator.cpp.

45  {
46  if (it_->word() == nullptr)
47  return nullptr; // Already at the end!
48  STRING text;
49  PAGE_RES_IT res_it(*it_);
50  WERD_CHOICE* best_choice = res_it.word()->best_choice;
51  ASSERT_HOST(best_choice != nullptr);
52  if (level == RIL_SYMBOL) {
53  text = res_it.word()->BestUTF8(blob_index_, false);
54  } else if (level == RIL_WORD) {
55  text = best_choice->unichar_string();
56  } else {
57  bool eol = false; // end of line?
58  bool eop = false; // end of paragraph?
59  do { // for each paragraph in a block
60  do { // for each text line in a paragraph
61  do { // for each word in a text line
62  best_choice = res_it.word()->best_choice;
63  ASSERT_HOST(best_choice != nullptr);
64  text += best_choice->unichar_string();
65  text += " ";
66  res_it.forward();
67  eol = res_it.row() != res_it.prev_row();
68  } while (!eol);
69  text.truncate_at(text.length() - 1);
70  text += line_separator_;
71  eop = res_it.block() != res_it.prev_block() ||
72  res_it.row()->row->para() != res_it.prev_row()->row->para();
73  } while (level != RIL_TEXTLINE && !eop);
74  if (eop)
75  text += paragraph_separator_;
76  } while (level == RIL_BLOCK && res_it.block() == res_it.prev_block());
77  }
78  int length = text.length() + 1;
79  char* result = new char[length];
80  strncpy(result, text.c_str(), length);
81  return result;
82 }

◆ HasBlamerInfo()

bool tesseract::LTRResultIterator::HasBlamerInfo ( ) const

Definition at line 259 of file ltrresultiterator.cpp.

259  {
260  return it_->word() != nullptr && it_->word()->blamer_bundle != nullptr &&
262 }

◆ HasTruthString()

bool tesseract::LTRResultIterator::HasTruthString ( ) const

Definition at line 287 of file ltrresultiterator.cpp.

287  {
288  if (it_->word() == nullptr)
289  return false; // Already at the end!
290  if (it_->word()->blamer_bundle == nullptr ||
291  it_->word()->blamer_bundle->NoTruth()) {
292  return false; // no truth information for this word
293  }
294  return true;
295 }

◆ RowAttributes()

void tesseract::LTRResultIterator::RowAttributes ( float *  row_height,
float *  descenders,
float *  ascenders 
) const

Definition at line 148 of file ltrresultiterator.cpp.

149  {
150  *row_height = it_->row()->row->x_height() + it_->row()->row->ascenders() -
151  it_->row()->row->descenders();
152  *descenders = it_->row()->row->descenders();
153  *ascenders = it_->row()->row->ascenders();
154 }

◆ SetLineSeparator()

void tesseract::LTRResultIterator::SetLineSeparator ( const char *  new_line)

Definition at line 85 of file ltrresultiterator.cpp.

85  {
86  line_separator_ = new_line;
87 }

◆ SetParagraphSeparator()

void tesseract::LTRResultIterator::SetParagraphSeparator ( const char *  new_para)

Definition at line 90 of file ltrresultiterator.cpp.

90  {
91  paragraph_separator_ = new_para;
92 }

◆ SymbolIsDropcap()

bool tesseract::LTRResultIterator::SymbolIsDropcap ( ) const

Definition at line 370 of file ltrresultiterator.cpp.

370  {
371  if (cblob_it_ == nullptr && it_->word() != nullptr)
373  return false;
374 }

◆ SymbolIsSubscript()

bool tesseract::LTRResultIterator::SymbolIsSubscript ( ) const

Definition at line 361 of file ltrresultiterator.cpp.

361  {
362  if (cblob_it_ == nullptr && it_->word() != nullptr)
364  return false;
365 }

◆ SymbolIsSuperscript()

bool tesseract::LTRResultIterator::SymbolIsSuperscript ( ) const

Definition at line 351 of file ltrresultiterator.cpp.

351  {
352  if (cblob_it_ == nullptr && it_->word() != nullptr)
355  return false;
356 }

◆ WordDirection()

StrongScriptDirection tesseract::LTRResultIterator::WordDirection ( ) const

Definition at line 220 of file ltrresultiterator.cpp.

220  {
221  if (it_->word() == nullptr)
222  return DIR_NEUTRAL;
223  bool has_rtl = it_->word()->AnyRtlCharsInWord();
224  bool has_ltr = it_->word()->AnyLtrCharsInWord();
225  if (has_rtl && !has_ltr)
226  return DIR_RIGHT_TO_LEFT;
227  if (has_ltr && !has_rtl)
228  return DIR_LEFT_TO_RIGHT;
229  if (!has_ltr && !has_rtl)
230  return DIR_NEUTRAL;
231  return DIR_MIX;
232 }

◆ WordFontAttributes()

const char * tesseract::LTRResultIterator::WordFontAttributes ( bool *  is_bold,
bool *  is_italic,
bool *  is_underlined,
bool *  is_monospace,
bool *  is_serif,
bool *  is_smallcaps,
int *  pointsize,
int *  font_id 
) const

Definition at line 164 of file ltrresultiterator.cpp.

166  {
167  const char* result = nullptr;
168 
169  if (it_->word() == nullptr) {
170  // Already at the end!
171  *pointsize = 0;
172  } else {
173  float row_height = it_->row()->row->x_height() +
174  it_->row()->row->ascenders() -
175  it_->row()->row->descenders();
176  // Convert from pixels to printers points.
177  *pointsize =
178  scaled_yres_ > 0
179  ? static_cast<int>(row_height * kPointsPerInch / scaled_yres_ + 0.5)
180  : 0;
181 
182  #ifndef DISABLED_LEGACY_ENGINE
183  const FontInfo* font_info = it_->word()->fontinfo;
184  if (font_info) {
185  // Font information available.
186  *font_id = font_info->universal_id;
187  *is_bold = font_info->is_bold();
188  *is_italic = font_info->is_italic();
189  *is_underlined = false; // TODO(rays) fix this!
190  *is_monospace = font_info->is_fixed_pitch();
191  *is_serif = font_info->is_serif();
192  result = font_info->name;
193  }
194  #endif // ndef DISABLED_LEGACY_ENGINE
195 
196  *is_smallcaps = it_->word()->small_caps;
197  }
198 
199  if (!result) {
200  *is_bold = false;
201  *is_italic = false;
202  *is_underlined = false;
203  *is_monospace = false;
204  *is_serif = false;
205  *is_smallcaps = false;
206  *font_id = -1;
207  }
208 
209  return result;
210 }

◆ WordIsFromDictionary()

bool tesseract::LTRResultIterator::WordIsFromDictionary ( ) const

Definition at line 235 of file ltrresultiterator.cpp.

235  {
236  if (it_->word() == nullptr)
237  return false; // Already at the end!
238  int permuter = it_->word()->best_choice->permuter();
239  return permuter == SYSTEM_DAWG_PERM || permuter == FREQ_DAWG_PERM ||
240  permuter == USER_DAWG_PERM;
241 }

◆ WordIsNumeric()

bool tesseract::LTRResultIterator::WordIsNumeric ( ) const

Definition at line 251 of file ltrresultiterator.cpp.

251  {
252  if (it_->word() == nullptr)
253  return false; // Already at the end!
254  int permuter = it_->word()->best_choice->permuter();
255  return permuter == NUMBER_PERM;
256 }

◆ WordLattice()

const char * tesseract::LTRResultIterator::WordLattice ( int *  lattice_size) const

Definition at line 339 of file ltrresultiterator.cpp.

339  {
340  if (it_->word() == nullptr)
341  return nullptr; // Already at the end!
342  if (it_->word()->blamer_bundle == nullptr)
343  return nullptr;
344  *lattice_size = it_->word()->blamer_bundle->lattice_size();
345  return it_->word()->blamer_bundle->lattice_data();
346 }

◆ WordNormedUTF8Text()

char * tesseract::LTRResultIterator::WordNormedUTF8Text ( ) const

Definition at line 321 of file ltrresultiterator.cpp.

321  {
322  if (it_->word() == nullptr)
323  return nullptr; // Already at the end!
324  STRING ocr_text;
325  WERD_CHOICE* best_choice = it_->word()->best_choice;
326  const UNICHARSET* unicharset = it_->word()->uch_set;
327  ASSERT_HOST(best_choice != nullptr);
328  for (int i = 0; i < best_choice->length(); ++i) {
329  ocr_text += unicharset->get_normed_unichar(best_choice->unichar_id(i));
330  }
331  int length = ocr_text.length() + 1;
332  char* result = new char[length];
333  strncpy(result, ocr_text.c_str(), length);
334  return result;
335 }

◆ WordRecognitionLanguage()

const char * tesseract::LTRResultIterator::WordRecognitionLanguage ( ) const

Definition at line 213 of file ltrresultiterator.cpp.

213  {
214  if (it_->word() == nullptr || it_->word()->tesseract == nullptr)
215  return nullptr;
216  return it_->word()->tesseract->lang.c_str();
217 }

◆ WordTruthUTF8Text()

char * tesseract::LTRResultIterator::WordTruthUTF8Text ( ) const

Definition at line 309 of file ltrresultiterator.cpp.

309  {
310  if (!HasTruthString())
311  return nullptr;
312  STRING truth_text = it_->word()->blamer_bundle->TruthString();
313  int length = truth_text.length() + 1;
314  char* result = new char[length];
315  strncpy(result, truth_text.c_str(), length);
316  return result;
317 }

Friends And Related Function Documentation

◆ ChoiceIterator

friend class ChoiceIterator
friend

Definition at line 48 of file ltrresultiterator.h.

Member Data Documentation

◆ line_separator_

const char* tesseract::LTRResultIterator::line_separator_
protected

Definition at line 181 of file ltrresultiterator.h.

◆ paragraph_separator_

const char* tesseract::LTRResultIterator::paragraph_separator_
protected

Definition at line 182 of file ltrresultiterator.h.


The documentation for this class was generated from the following files:
WERD_CHOICE::unichar_string
const STRING & unichar_string() const
Definition: ratngs.h:529
ClipToRange
T ClipToRange(const T &x, const T &lower_bound, const T &upper_bound)
Definition: helpers.h:106
BlamerBundle::ChoiceIsCorrect
bool ChoiceIsCorrect(const WERD_CHOICE *word_choice) const
Definition: blamer.cpp:117
BlamerBundle::TruthString
STRING TruthString() const
Definition: blamer.h:115
tesseract::LTRResultIterator::HasTruthString
bool HasTruthString() const
Definition: ltrresultiterator.cpp:287
tesseract::RIL_WORD
Definition: publictypes.h:220
kPointsPerInch
constexpr int kPointsPerInch
Definition: publictypes.h:32
ROW::descenders
float descenders() const
Definition: ocrrow.h:84
WERD_CHOICE::unichar_id
UNICHAR_ID unichar_id(int index) const
Definition: ratngs.h:303
WERD_CHOICE
Definition: ratngs.h:261
tesseract::PageIterator::it_
PAGE_RES_IT * it_
Definition: pageiterator.h:332
ASSERT_HOST
#define ASSERT_HOST(x)
Definition: errcode.h:87
SYSTEM_DAWG_PERM
Definition: ratngs.h:239
tesseract::RIL_BLOCK
Definition: publictypes.h:217
PAGE_RES_IT::row
ROW_RES * row() const
Definition: pageres.h:751
BlamerBundle::lattice_data
const char * lattice_data() const
Definition: blamer.h:153
WERD_CHOICE::certainty
float certainty() const
Definition: ratngs.h:318
tesseract::FontInfo::is_italic
bool is_italic() const
Definition: fontinfo.h:111
STRING
Definition: strngs.h:45
BlamerBundle::misadaption_debug
const STRING & misadaption_debug() const
Definition: blamer.h:134
STRING::truncate_at
void truncate_at(int32_t index)
Definition: strngs.cpp:258
WERD_CHOICE::permuter
uint8_t permuter() const
Definition: ratngs.h:334
WERD_RES::fontinfo
const FontInfo * fontinfo
Definition: pageres.h:303
tesseract::LTRResultIterator::line_separator_
const char * line_separator_
Definition: ltrresultiterator.h:181
WERD_CHOICE::BlobPosition
tesseract::ScriptPos BlobPosition(int index) const
Definition: ratngs.h:310
UNICHARSET::get_normed_unichar
const char * get_normed_unichar(UNICHAR_ID unichar_id) const
Definition: unicharset.h:818
tesseract::FontInfo::universal_id
int32_t universal_id
Definition: fontinfo.h:123
tesseract::LTRResultIterator::paragraph_separator_
const char * paragraph_separator_
Definition: ltrresultiterator.h:182
WERD_RES::uch_set
const UNICHARSET * uch_set
Definition: pageres.h:197
DIR_LEFT_TO_RIGHT
Definition: unichar.h:45
WERD_RES::blamer_bundle
BlamerBundle * blamer_bundle
Definition: pageres.h:246
tesseract::RIL_SYMBOL
Definition: publictypes.h:221
tesseract::SP_SUBSCRIPT
Definition: ratngs.h:252
WERD_RES::AnyLtrCharsInWord
bool AnyLtrCharsInWord() const
Definition: pageres.h:403
ROW::x_height
float x_height() const
Definition: ocrrow.h:63
WERD_RES::best_choice
WERD_CHOICE * best_choice
Definition: pageres.h:235
WERD::space
uint8_t space()
Definition: werd.h:98
BlamerBundle::HasDebugInfo
bool HasDebugInfo() const
Definition: blamer.h:128
STRING::c_str
const char * c_str() const
Definition: strngs.cpp:192
ROW_RES::row
ROW * row
Definition: pageres.h:136
ROW::ascenders
float ascenders() const
Definition: ocrrow.h:81
UNICHARSET
Definition: unicharset.h:145
WERD_RES::AnyRtlCharsInWord
bool AnyRtlCharsInWord() const
Definition: pageres.h:387
tesseract::CCUtil::lang
STRING lang
Definition: ccutil.h:55
tesseract
Definition: baseapi.h:65
PAGE_RES_IT::word
WERD_RES * word() const
Definition: pageres.h:748
tesseract::FontInfo::is_fixed_pitch
bool is_fixed_pitch() const
Definition: fontinfo.h:113
tesseract::PageIterator::cblob_it_
C_BLOB_IT * cblob_it_
Definition: pageiterator.h:347
tesseract::SP_DROPCAP
Definition: ratngs.h:254
tesseract::FontInfo
Definition: fontinfo.h:62
tesseract::RIL_TEXTLINE
Definition: publictypes.h:219
DIR_NEUTRAL
Definition: unichar.h:44
tesseract::FontInfo::name
char * name
Definition: fontinfo.h:117
PAGE_RES_IT
Definition: pageres.h:668
STRING::length
int32_t length() const
Definition: strngs.cpp:187
BlamerBundle::debug
const STRING & debug() const
Definition: blamer.h:131
WERD_CHOICE::length
int length() const
Definition: ratngs.h:291
WERD_RES::tesseract
tesseract::Tesseract * tesseract
Definition: pageres.h:274
tesseract::SP_SUPERSCRIPT
Definition: ratngs.h:253
BlamerBundle::lattice_size
int lattice_size() const
Definition: blamer.h:156
BlamerBundle::params_training_bundle
const tesseract::ParamsTrainingBundle & params_training_bundle() const
Definition: blamer.h:166
DIR_RIGHT_TO_LEFT
Definition: unichar.h:46
tesseract::PageIterator::scaled_yres_
int scaled_yres_
Definition: pageiterator.h:353
BlamerBundle::NoTruth
bool NoTruth() const
Definition: blamer.h:124
DIR_MIX
Definition: unichar.h:47
WERD_RES::word
WERD * word
Definition: pageres.h:180
tesseract::FontInfo::is_bold
bool is_bold() const
Definition: fontinfo.h:112
FREQ_DAWG_PERM
Definition: ratngs.h:242
tesseract::RIL_PARA
Definition: publictypes.h:218
WERD_RES::small_caps
bool small_caps
Definition: pageres.h:300
NUMBER_PERM
Definition: ratngs.h:237
tesseract::FontInfo::is_serif
bool is_serif() const
Definition: fontinfo.h:114
USER_DAWG_PERM
Definition: ratngs.h:241
tesseract::PageIterator::blob_index_
int blob_index_
Definition: pageiterator.h:341
tesseract::PageIterator::PageIterator
PageIterator(PAGE_RES *page_res, Tesseract *tesseract, int scale, int scaled_yres, int rect_left, int rect_top, int rect_width, int rect_height)
Definition: pageiterator.cpp:30