* 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
| 1252 | * DetectOS, or anything else that changes the internal PAGE_RES. |
| 1253 | */ |
| 1254 | ResultIterator* 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. |
no test coverage detected