tesseract 4.1.1
Loading...
Searching...
No Matches
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 114 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 96 of file pageres.cpp.

96 {
97 ROW_IT row_it (the_block->row_list ());
98 ROW_RES_IT row_res_it(&row_res_list);
99
100 char_count = 0;
101 rej_count = 0;
102 font_class = -1; //not assigned
103 x_height = -1.0;
104 font_assigned = false;
105 row_count = 0;
106
107 block = the_block;
108
109 for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) {
110 row_res_it.add_to_end(new ROW_RES(merge_similar_words, row_it.data()));
111 }
112}
ROW_LIST * row_list()
get rows
Definition: ocrblock.h:116
float x_height
Definition: pageres.h:121
int32_t rej_count
Definition: pageres.h:118
int16_t font_class
Definition: pageres.h:119
ROW_RES_LIST row_res_list
Definition: pageres.h:125
bool font_assigned
Definition: pageres.h:122
int32_t char_count
Definition: pageres.h:117
BLOCK * block
Definition: pageres.h:116
int16_t row_count
Definition: pageres.h:120

◆ ~BLOCK_RES()

BLOCK_RES::~BLOCK_RES ( )
default

Member Data Documentation

◆ block

BLOCK* BLOCK_RES::block

Definition at line 116 of file pageres.h.

◆ char_count

int32_t BLOCK_RES::char_count

Definition at line 117 of file pageres.h.

◆ font_assigned

bool BLOCK_RES::font_assigned

Definition at line 122 of file pageres.h.

◆ font_class

int16_t BLOCK_RES::font_class

Definition at line 119 of file pageres.h.

◆ rej_count

int32_t BLOCK_RES::rej_count

Definition at line 118 of file pageres.h.

◆ row_count

int16_t BLOCK_RES::row_count

Definition at line 120 of file pageres.h.

◆ row_res_list

ROW_RES_LIST BLOCK_RES::row_res_list

Definition at line 125 of file pageres.h.

◆ x_height

float BLOCK_RES::x_height

Definition at line 121 of file pageres.h.


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