tesseract v5.3.3.20231005
tesseract::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
 
std::vector< int > blame_reasons
 
std::vector< std::string > misadaption_log
 

Detailed Description

Definition at line 77 of file pageres.h.

Constructor & Destructor Documentation

◆ PAGE_RES() [1/2]

tesseract::PAGE_RES::PAGE_RES ( )
inline

Definition at line 103 of file pageres.h.

103 {
104 Init();
105 } // empty constructor

◆ PAGE_RES() [2/2]

tesseract::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.

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(); !block_it.cycled_list(); block_it.forward()) {
83 block_res_it.add_to_end(
84 new BLOCK_RES(merge_similar_words, block_it.data()));
85 }
86 prev_word_best_choice = prev_word_best_choice_ptr;
87}
BLOCK_RES_LIST block_res_list
Definition: pageres.h:81
WERD_CHOICE ** prev_word_best_choice
Definition: pageres.h:85

◆ ~PAGE_RES()

tesseract::PAGE_RES::~PAGE_RES ( )
default

Member Function Documentation

◆ Init()

void tesseract::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;
99 blame_reasons.clear();
101 }
@ IRR_NUM_REASONS
Definition: blamer.h:103
int32_t rej_count
Definition: pageres.h:80
int32_t char_count
Definition: pageres.h:79
std::vector< int > blame_reasons
Definition: pageres.h:87

Member Data Documentation

◆ blame_reasons

std::vector<int> tesseract::PAGE_RES::blame_reasons

Definition at line 87 of file pageres.h.

◆ block_res_list

BLOCK_RES_LIST tesseract::PAGE_RES::block_res_list

Definition at line 81 of file pageres.h.

◆ char_count

int32_t tesseract::PAGE_RES::char_count

Definition at line 79 of file pageres.h.

◆ misadaption_log

std::vector<std::string> tesseract::PAGE_RES::misadaption_log

Definition at line 92 of file pageres.h.

◆ prev_word_best_choice

WERD_CHOICE** tesseract::PAGE_RES::prev_word_best_choice

Definition at line 85 of file pageres.h.

◆ rej_count

int32_t tesseract::PAGE_RES::rej_count

Definition at line 80 of file pageres.h.

◆ rejected

bool tesseract::PAGE_RES::rejected

Definition at line 82 of file pageres.h.


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