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

Method GetIterator

deps/tesseract/api/baseapi.cpp:1254–1261  ·  view source on GitHub ↗

* Get a reading-order iterator to the results of LayoutAnalysis and/or * Recognize. The returned iterator must be deleted after use. * WARNING! This class points to data held within the TessBaseAPI class, and * therefore can only be used while the TessBaseAPI class still exists and * has not been subjected to a call of Init, SetImage, Recognize, Clear, End * DetectOS, or anything else that ch

Source from the content-addressed store, hash-verified

1252 * DetectOS, or anything else that changes the internal PAGE_RES.
1253 */
1254ResultIterator* TessBaseAPI::GetIterator() {
1255 if (tesseract_ == NULL || page_res_ == NULL)
1256 return NULL;
1257 return ResultIterator::StartOfParagraph(LTRResultIterator(
1258 page_res_, tesseract_,
1259 thresholder_->GetScaleFactor(), thresholder_->GetScaledYResolution(),
1260 rect_left_, rect_top_, rect_width_, rect_height_));
1261}
1262
1263/**
1264 * Get a mutable iterator to the results of LayoutAnalysis and/or Recognize.

Callers 3

TransformResultMethod · 0.80
capi.cppFile · 0.80
GetPDFTextObjectsMethod · 0.80

Calls 1

LTRResultIteratorClass · 0.85

Tested by

no test coverage detected