#include <pageres.h>
Definition at line 141 of file pageres.h.
◆ ROW_RES() [1/2]
◆ ROW_RES() [2/2]
ROW_RES::ROW_RES |
( |
bool |
merge_similar_words, |
|
|
ROW * |
the_row |
|
) |
| |
Definition at line 124 of file pageres.cpp.
135 bool add_next_word =
false;
139 for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) {
147 }
else if (merge_similar_words) {
151 word_res->
odd_size = !add_next_word;
153 WERD* next_word = word_it.data_relative(1);
154 if (merge_similar_words) {
162 int prev_right = union_box.
right();
163 union_box += next_box;
167 add_next_word =
false;
175 if (combo ==
nullptr) {
176 copy_word =
new WERD;
177 *copy_word = *(word_it.data());
181 word_res_it.add_to_end(combo);
187 word_res_it.add_to_end(word_res);
WERD_RES_LIST word_res_list
const double kMaxWordGapRatio
const double kMaxLineSizeRatio
int32_t whole_word_rej_count
TBOX bounding_box() const
void set_flag(WERD_FLAGS mask, bool value)
bool flag(WERD_FLAGS mask) const
void copy_on(WERD_RES *word_res)
const double kMaxWordSizeRatio
◆ ~ROW_RES()
◆ char_count
int32_t ROW_RES::char_count |
◆ rej_count
int32_t ROW_RES::rej_count |
◆ row
◆ whole_word_rej_count
int32_t ROW_RES::whole_word_rej_count |
◆ word_res_list
WERD_RES_LIST ROW_RES::word_res_list |
The documentation for this class was generated from the following files:
- /usr/src/tesseract-ocr.master/src/ccstruct/pageres.h
- /usr/src/tesseract-ocr.master/src/ccstruct/pageres.cpp