| 80 | namespace tesseract { |
| 81 | |
| 82 | static void clear_any_old_text(BLOCK_LIST *block_list) { |
| 83 | BLOCK_IT block_it(block_list); |
| 84 | for (block_it.mark_cycle_pt(); |
| 85 | !block_it.cycled_list(); block_it.forward()) { |
| 86 | ROW_IT row_it(block_it.data()->row_list()); |
| 87 | for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) { |
| 88 | WERD_IT word_it(row_it.data()->word_list()); |
| 89 | for (word_it.mark_cycle_pt(); |
| 90 | !word_it.cycled_list(); word_it.forward()) { |
| 91 | word_it.data()->set_text(""); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | // Applies the box file based on the image name fname, and resegments |
| 98 | // the words in the block_list (page), with: |
no test coverage detected