Skip to content

Commit

Permalink
Calculate row bounding box in single-word mode per tesseract-ocr#4304
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Aug 23, 2024
1 parent 215b023 commit ba8dfce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textord/wordseg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void make_single_word(bool one_blob, TO_ROW_LIST *rows, ROW_LIST *real_rows) {
word->set_flag(W_EOL, true);
word->set_flag(W_DONT_CHOP, one_blob);
word_it.add_after_then_move(word);
real_row->recalc_bounding_box();
row_it.add_after_then_move(real_row);
}
}
Expand Down

0 comments on commit ba8dfce

Please sign in to comment.