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

Function ValidFirstLine

deps/tesseract/ccmain/paragraphs.cpp:1266–1275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1264}
1265
1266bool ValidFirstLine(const GenericVector<RowScratchRegisters> *rows,
1267 int row, const ParagraphModel *model) {
1268 if (!StrongModel(model)) {
1269 tprintf("ValidFirstLine() should only be called with strong models!\n");
1270 }
1271 return StrongModel(model) &&
1272 model->ValidFirstLine(
1273 (*rows)[row].lmargin_, (*rows)[row].lindent_,
1274 (*rows)[row].rindent_, (*rows)[row].rmargin_);
1275}
1276
1277bool ValidBodyLine(const GenericVector<RowScratchRegisters> *rows,
1278 int row, const ParagraphModel *model) {

Callers 7

MarkRowsWithModelFunction · 0.85
GeometricClassifyFunction · 0.85
CalculateOpenModelsMethod · 0.85
SmearMethod · 0.85
DowngradeWeakestToCrownsFunction · 0.85
RowsFitModelFunction · 0.85

Calls 2

StrongModelFunction · 0.85
ValidFirstLineMethod · 0.80

Tested by

no test coverage detected