MCPcopy Create free account
hub / github.com/creatale/node-dv / SetupBoxWord

Method SetupBoxWord

deps/tesseract/ccstruct/pageres.cpp:843–849  ·  view source on GitHub ↗

Sets/replaces the box_word with one made from the rebuild_word.

Source from the content-addressed store, hash-verified

841
842// Sets/replaces the box_word with one made from the rebuild_word.
843void WERD_RES::SetupBoxWord() {
844 if (box_word != NULL)
845 delete box_word;
846 rebuild_word->ComputeBoundingBoxes();
847 box_word = tesseract::BoxWord::CopyFromNormalized(rebuild_word);
848 box_word->ClipToOriginalWord(denorm.block(), word);
849}
850
851// Sets up the script positions in the output best_choice using the best_choice
852// to get the unichars, and the unicharset to get the target positions.

Callers 3

TidyUpMethod · 0.80
recog_wordMethod · 0.80
join_wordsMethod · 0.80

Calls 3

ComputeBoundingBoxesMethod · 0.80
ClipToOriginalWordMethod · 0.80
blockMethod · 0.45

Tested by

no test coverage detected