Sets/replaces the box_word with one made from the rebuild_word.
| 841 | |
| 842 | // Sets/replaces the box_word with one made from the rebuild_word. |
| 843 | void 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. |
no test coverage detected