tesseract  5.0.0-alpha-619-ge9db
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 73 of file pageres.h.

Constructor & Destructor Documentation

◆ PAGE_RES() [1/2]

PAGE_RES::PAGE_RES ( )
inline

Definition at line 99 of file pageres.h.

100 { Init(); } // empty constructor

◆ 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 73 of file pageres.cpp.

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

◆ ~PAGE_RES()

PAGE_RES::~PAGE_RES ( )
default

Member Function Documentation

◆ Init()

void PAGE_RES::Init ( )
inline

Definition at line 91 of file pageres.h.

92  {
93  char_count = 0;
94  rej_count = 0;
95  rejected = false;
96  prev_word_best_choice = nullptr;

Member Data Documentation

◆ blame_reasons

GenericVector<int> PAGE_RES::blame_reasons

Definition at line 84 of file pageres.h.

◆ block_res_list

BLOCK_RES_LIST PAGE_RES::block_res_list

Definition at line 78 of file pageres.h.

◆ char_count

int32_t PAGE_RES::char_count

Definition at line 76 of file pageres.h.

◆ misadaption_log

GenericVector<STRING> PAGE_RES::misadaption_log

Definition at line 89 of file pageres.h.

◆ prev_word_best_choice

WERD_CHOICE** PAGE_RES::prev_word_best_choice

Definition at line 82 of file pageres.h.

◆ rej_count

int32_t PAGE_RES::rej_count

Definition at line 77 of file pageres.h.

◆ rejected

bool PAGE_RES::rejected

Definition at line 79 of file pageres.h.


The documentation for this class was generated from the following files:
PAGE_RES::blame_reasons
GenericVector< int > blame_reasons
Definition: pageres.h:84
BLOCK_RES
Definition: pageres.h:110
PAGE_RES::block_res_list
BLOCK_RES_LIST block_res_list
Definition: pageres.h:78
PAGE_RES::char_count
int32_t char_count
Definition: pageres.h:76
PAGE_RES::rej_count
int32_t rej_count
Definition: pageres.h:77
PAGE_RES::prev_word_best_choice
WERD_CHOICE ** prev_word_best_choice
Definition: pageres.h:82
IRR_NUM_REASONS
Definition: blamer.h:99
PAGE_RES::rejected
bool rejected
Definition: pageres.h:79
GenericVector::init_to_size
void init_to_size(int size, const T &t)
Definition: genericvector.h:706
PAGE_RES::Init
void Init()
Definition: pageres.h:91