#include <pageres.h>
Definition at line 125 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 110 of file pageres.cpp.
121 bool add_next_word =
false;
125 for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) {
133 }
else if (merge_similar_words) {
137 word_res->
odd_size = !add_next_word;
139 WERD* next_word = word_it.data_relative(1);
140 if (merge_similar_words) {
148 int prev_right = union_box.
right();
149 union_box += next_box;
153 add_next_word =
false;
162 copy_word =
new WERD;
163 *copy_word = *(word_it.data());
167 word_res_it.add_to_end(combo);
173 word_res_it.add_to_end(word_res);
WERD_RES_LIST word_res_list
BOOL8 flag(WERD_FLAGS mask) const
inT32 whole_word_rej_count
const double kMaxLineSizeRatio
void copy_on(WERD_RES *word_res)
void set_flag(WERD_FLAGS mask, BOOL8 value)
const double kMaxWordSizeRatio
TBOX bounding_box() const
const double kMaxWordGapRatio
◆ ~ROW_RES()
◆ char_count
inT32 ROW_RES::char_count |
◆ rej_count
◆ row
◆ whole_word_rej_count
inT32 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: