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

Method ApplyBoxTraining

deps/tesseract/ccmain/applybox.cpp:796–805  ·  view source on GitHub ↗

Calls #LearnWord to extract features for labelled blobs within each word. Features are stored in an internal buffer.

Source from the content-addressed store, hash-verified

794/// Calls #LearnWord to extract features for labelled blobs within each word.
795/// Features are stored in an internal buffer.
796void Tesseract::ApplyBoxTraining(const STRING& fontname, PAGE_RES* page_res) {
797 PAGE_RES_IT pr_it(page_res);
798 int word_count = 0;
799 for (WERD_RES *word_res = pr_it.word(); word_res != NULL;
800 word_res = pr_it.forward()) {
801 LearnWord(fontname.string(), word_res);
802 ++word_count;
803 }
804 tprintf("Generated training data for %d words\n", word_count);
805}
806
807
808} // namespace tesseract

Callers 1

RecognizeMethod · 0.80

Calls 3

wordMethod · 0.45
forwardMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected