Skip to content

Commit ba8dfce

Browse files
committed
Calculate row bounding box in single-word mode per tesseract-ocr#4304
1 parent 215b023 commit ba8dfce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/textord/wordseg.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ void make_single_word(bool one_blob, TO_ROW_LIST *rows, ROW_LIST *real_rows) {
8787
word->set_flag(W_EOL, true);
8888
word->set_flag(W_DONT_CHOP, one_blob);
8989
word_it.add_after_then_move(word);
90+
real_row->recalc_bounding_box();
9091
row_it.add_after_then_move(real_row);
9192
}
9293
}

0 commit comments

Comments
 (0)