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

Method EvaluateTabs

deps/tesseract/textord/tabfind.cpp:935–951  ·  view source on GitHub ↗

Evaluate all the current tab vectors.

Source from the content-addressed store, hash-verified

933
934// Evaluate all the current tab vectors.
935void TabFind::EvaluateTabs() {
936 TabVector_IT rule_it(&vectors_);
937 for (rule_it.mark_cycle_pt(); !rule_it.cycled_list(); rule_it.forward()) {
938 TabVector* tab = rule_it.data();
939 if (!tab->IsSeparator()) {
940 tab->Evaluate(vertical_skew_, this);
941 if (tab->BoxCount() < kMinEvaluatedTabs) {
942 if (textord_debug_tabfind > 2)
943 tab->Print("Too few boxes");
944 delete rule_it.extract();
945 v_it_.set_to_list(&vectors_);
946 } else if (WithinTestRegion(3, tab->startpt().x(), tab->startpt().y())) {
947 tab->Print("Evaluated tab");
948 }
949 }
950 }
951}
952
953// Trace textlines from one side to the other of each tab vector, saving
954// the most frequent column widths found in a list so that a given width

Callers

nothing calls this directly

Calls 12

dataMethod · 0.80
IsSeparatorMethod · 0.80
EvaluateMethod · 0.80
BoxCountMethod · 0.80
mark_cycle_ptMethod · 0.45
cycled_listMethod · 0.45
forwardMethod · 0.45
PrintMethod · 0.45
extractMethod · 0.45
set_to_listMethod · 0.45
xMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected