Hello guys
I was browsing through the assign_blobs_to_rows function in makerow.cpp, when I found out this threshold that I couldn't and still can't understand. Here is the code:
if (!make_new_rows) {
near_dist = row_it.data_relative (-1)->min_y () - top;
//below bottom
if (bottom < row->min_y ()) {
if (row->min_y () - bottom <=
(block->line_spacing -
block->line_size) * tesseract::CCStruct::kDescenderFraction) {
//done it
overlap_result = ASSIGN;
dest_row = row;
}
}
Here shouldn't it be
block->line_spacing - block->line_size*tesseract::CCStruct::kDescenderFraction? I can't make sense out of the threshold above. Can anyone explain? (@zdenop and other experienced developers)