tesseract  4.0.0-1-g2a2b
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 77 of file pageres.h.

Constructor & Destructor Documentation

◆ PAGE_RES() [1/2]

PAGE_RES::PAGE_RES ( )
inline

Definition at line 102 of file pageres.h.

102 { Init(); } // empty constructor
void Init()
Definition: pageres.h:94

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

80  {
81  Init();
82  BLOCK_IT block_it(the_block_list);
83  BLOCK_RES_IT block_res_it(&block_res_list);
84  for (block_it.mark_cycle_pt();
85  !block_it.cycled_list(); block_it.forward()) {
86  block_res_it.add_to_end(new BLOCK_RES(merge_similar_words,
87  block_it.data()));
88  }
89  prev_word_best_choice = prev_word_best_choice_ptr;
90 }
BLOCK_RES_LIST block_res_list
Definition: pageres.h:81
WERD_CHOICE ** prev_word_best_choice
Definition: pageres.h:85
void Init()
Definition: pageres.h:94

◆ ~PAGE_RES()

PAGE_RES::~PAGE_RES ( )
default

Member Function Documentation

◆ Init()

void PAGE_RES::Init ( )
inline

Definition at line 94 of file pageres.h.

94  {
95  char_count = 0;
96  rej_count = 0;
97  rejected = false;
98  prev_word_best_choice = nullptr;
100  }
int32_t rej_count
Definition: pageres.h:80
void init_to_size(int size, const T &t)
WERD_CHOICE ** prev_word_best_choice
Definition: pageres.h:85
int32_t char_count
Definition: pageres.h:79
bool rejected
Definition: pageres.h:82
GenericVector< int > blame_reasons
Definition: pageres.h:87

Member Data Documentation

◆ blame_reasons

GenericVector<int> PAGE_RES::blame_reasons

Definition at line 87 of file pageres.h.

◆ block_res_list

BLOCK_RES_LIST PAGE_RES::block_res_list

Definition at line 81 of file pageres.h.

◆ char_count

int32_t PAGE_RES::char_count

Definition at line 79 of file pageres.h.

◆ misadaption_log

GenericVector<STRING> PAGE_RES::misadaption_log

Definition at line 92 of file pageres.h.

◆ prev_word_best_choice

WERD_CHOICE** PAGE_RES::prev_word_best_choice

Definition at line 85 of file pageres.h.

◆ rej_count

int32_t PAGE_RES::rej_count

Definition at line 80 of file pageres.h.

◆ rejected

bool PAGE_RES::rejected

Definition at line 82 of file pageres.h.


The documentation for this class was generated from the following files: