tesseract  5.0.0-alpha-619-ge9db
BLOCK_RES Class Reference

#include <pageres.h>

Inheritance diagram for BLOCK_RES:
ELIST_LINK

Public Member Functions

 BLOCK_RES ()=default
 
 BLOCK_RES (bool merge_similar_words, BLOCK *the_block)
 
 ~BLOCK_RES ()=default
 
- Public Member Functions inherited from ELIST_LINK
 ELIST_LINK ()
 
 ELIST_LINK (const ELIST_LINK &)
 
void operator= (const ELIST_LINK &)
 

Public Attributes

BLOCKblock
 
int32_t char_count
 
int32_t rej_count
 
int16_t font_class
 
int16_t row_count
 
float x_height
 
bool font_assigned
 
ROW_RES_LIST row_res_list
 

Detailed Description

Definition at line 110 of file pageres.h.

Constructor & Destructor Documentation

◆ BLOCK_RES() [1/2]

BLOCK_RES::BLOCK_RES ( )
default

◆ BLOCK_RES() [2/2]

BLOCK_RES::BLOCK_RES ( bool  merge_similar_words,
BLOCK the_block 
)

Definition at line 93 of file pageres.cpp.

95  {
96  ROW_IT row_it (the_block->row_list ());
97  ROW_RES_IT row_res_it(&row_res_list);
98 
99  char_count = 0;
100  rej_count = 0;
101  font_class = -1; //not assigned
102  x_height = -1.0;
103  font_assigned = false;
104  row_count = 0;
105 
106  block = the_block;
107 
108  for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) {
109  row_res_it.add_to_end(new ROW_RES(merge_similar_words, row_it.data()));

◆ ~BLOCK_RES()

BLOCK_RES::~BLOCK_RES ( )
default

Member Data Documentation

◆ block

BLOCK* BLOCK_RES::block

Definition at line 113 of file pageres.h.

◆ char_count

int32_t BLOCK_RES::char_count

Definition at line 114 of file pageres.h.

◆ font_assigned

bool BLOCK_RES::font_assigned

Definition at line 119 of file pageres.h.

◆ font_class

int16_t BLOCK_RES::font_class

Definition at line 116 of file pageres.h.

◆ rej_count

int32_t BLOCK_RES::rej_count

Definition at line 115 of file pageres.h.

◆ row_count

int16_t BLOCK_RES::row_count

Definition at line 117 of file pageres.h.

◆ row_res_list

ROW_RES_LIST BLOCK_RES::row_res_list

Definition at line 122 of file pageres.h.

◆ x_height

float BLOCK_RES::x_height

Definition at line 118 of file pageres.h.


The documentation for this class was generated from the following files:
BLOCK_RES::rej_count
int32_t rej_count
Definition: pageres.h:115
BLOCK_RES::char_count
int32_t char_count
Definition: pageres.h:114
BLOCK_RES::font_class
int16_t font_class
Definition: pageres.h:116
BLOCK::row_list
ROW_LIST * row_list()
get rows
Definition: ocrblock.h:115
BLOCK_RES::row_count
int16_t row_count
Definition: pageres.h:117
BLOCK_RES::font_assigned
bool font_assigned
Definition: pageres.h:119
BLOCK_RES::row_res_list
ROW_RES_LIST row_res_list
Definition: pageres.h:122
ROW_RES
Definition: pageres.h:133
BLOCK_RES::block
BLOCK * block
Definition: pageres.h:113
BLOCK_RES::x_height
float x_height
Definition: pageres.h:118