Insertion Threshold for Non-overlapping rows.

55 views
Skip to first unread message

Aditya Kumar Praharaj

unread,
Dec 16, 2014, 3:35:15 AM12/16/14
to tesser...@googlegroups.com
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)
Reply all
Reply to author
Forward
0 new messages