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

Function clear_any_old_text

deps/tesseract/ccmain/applybox.cpp:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80namespace tesseract {
81
82static 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:

Callers 1

ApplyBoxesMethod · 0.85

Calls 7

row_listMethod · 0.80
dataMethod · 0.80
word_listMethod · 0.80
set_textMethod · 0.80
mark_cycle_ptMethod · 0.45
cycled_listMethod · 0.45
forwardMethod · 0.45

Tested by

no test coverage detected