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

Function AddBoxToTSV

deps/tesseract/api/baseapi.cpp:1398–1406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396}
1397
1398static void AddBoxToTSV(const PageIterator* it, PageIteratorLevel level,
1399 STRING* hocr_str) {
1400 int left, top, right, bottom;
1401 it->BoundingBox(level, &left, &top, &right, &bottom);
1402 hocr_str->add_str_int("\t", left);
1403 hocr_str->add_str_int("\t", top);
1404 hocr_str->add_str_int("\t", right - left);
1405 hocr_str->add_str_int("\t", bottom - top);
1406}
1407
1408/**
1409 * Make a HTML-formatted string with hOCR markup from the internal

Callers 1

GetTSVTextMethod · 0.85

Calls 2

BoundingBoxMethod · 0.80
add_str_intMethod · 0.80

Tested by

no test coverage detected