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

Method SetBodyLine

deps/tesseract/ccmain/paragraphs.cpp:572–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void RowScratchRegisters::SetBodyLine() {
573 LineType current_lt = GetLineType();
574 if (current_lt != LT_UNKNOWN && current_lt != LT_BODY) {
575 tprintf("Trying to set a line to be BODY when it's already START.\n");
576 }
577 if (current_lt == LT_UNKNOWN || current_lt == LT_START) {
578 hypotheses_.push_back_new(LineHypothesis(LT_BODY, NULL));
579 }
580}
581
582void RowScratchRegisters::AddStartLine(const ParagraphModel *model) {
583 hypotheses_.push_back_new(LineHypothesis(LT_START, model));

Callers 1

MarkStrongEvidenceFunction · 0.80

Calls 2

LineHypothesisClass · 0.85
push_back_newMethod · 0.80

Tested by

no test coverage detected