tesseract  4.1.1
PAGE_RES Class Reference

#include <pageres.h>

Public Member Functions

void Init ()
 
 PAGE_RES ()
 
 PAGE_RES (bool merge_similar_words, BLOCK_LIST *block_list, WERD_CHOICE **prev_word_best_choice_ptr)
 
 ~PAGE_RES ()=default
 

Public Attributes

int32_t char_count
 
int32_t rej_count
 
BLOCK_RES_LIST block_res_list
 
bool rejected
 
WERD_CHOICE ** prev_word_best_choice
 
GenericVector< int > blame_reasons
 
GenericVector< STRINGmisadaption_log
 

Detailed Description

Definition at line 76 of file pageres.h.

Constructor & Destructor Documentation

◆ PAGE_RES() [1/2]

PAGE_RES::PAGE_RES ( )
inline

Definition at line 103 of file pageres.h.

114 :public ELIST_LINK {

◆ PAGE_RES() [2/2]

PAGE_RES::PAGE_RES ( bool  merge_similar_words,
BLOCK_LIST *  block_list,
WERD_CHOICE **  prev_word_best_choice_ptr 
)

Definition at line 75 of file pageres.cpp.

78  {
79  Init();
80  BLOCK_IT block_it(the_block_list);
81  BLOCK_RES_IT block_res_it(&block_res_list);
82  for (block_it.mark_cycle_pt();
83  !block_it.cycled_list(); block_it.forward()) {
84  block_res_it.add_to_end(new BLOCK_RES(merge_similar_words,
85  block_it.data()));
86  }
87  prev_word_best_choice = prev_word_best_choice_ptr;
88 }

◆ ~PAGE_RES()

PAGE_RES::~PAGE_RES ( )
default

Member Function Documentation

◆ Init()

void PAGE_RES::Init ( )
inline

Definition at line 95 of file pageres.h.

101  { Init(); } // empty constructor

Member Data Documentation

◆ blame_reasons

GenericVector<int> PAGE_RES::blame_reasons

Definition at line 88 of file pageres.h.

◆ block_res_list

BLOCK_RES_LIST PAGE_RES::block_res_list

Definition at line 82 of file pageres.h.

◆ char_count

int32_t PAGE_RES::char_count

Definition at line 80 of file pageres.h.

◆ misadaption_log

GenericVector<STRING> PAGE_RES::misadaption_log

Definition at line 93 of file pageres.h.

◆ prev_word_best_choice

WERD_CHOICE** PAGE_RES::prev_word_best_choice

Definition at line 86 of file pageres.h.

◆ rej_count

int32_t PAGE_RES::rej_count

Definition at line 81 of file pageres.h.

◆ rejected

bool PAGE_RES::rejected

Definition at line 83 of file pageres.h.


The documentation for this class was generated from the following files:
ELIST_LINK
Definition: elst.h:78
PAGE_RES::prev_word_best_choice
WERD_CHOICE ** prev_word_best_choice
Definition: pageres.h:86
BLOCK_RES
Definition: pageres.h:114
PAGE_RES::block_res_list
BLOCK_RES_LIST block_res_list
Definition: pageres.h:82
PAGE_RES::Init
void Init()
Definition: pageres.h:95