public class ResultIterator extends PageIterator
| Modifier and Type | Method and Description |
|---|---|
float |
confidence(int level)
Returns the mean confidence of the current object at the given level.
|
void |
delete()
Deletes the iterator after use
|
List<Pair<String,Double>> |
getChoicesAndConfidence(int level)
Returns all possible matching text strings and their confidence level
for the current object at the given level.
|
String |
getUTF8Text(int level)
Returns the text string for the current object at the given level.
|
begin, getBoundingBox, getBoundingRect, nextpublic String getUTF8Text(int level)
level - the page iterator level. See TessBaseAPI.PageIteratorLevel.public float confidence(int level)
level - the page iterator level. See TessBaseAPI.PageIteratorLevel.public List<Pair<String,Double>> getChoicesAndConfidence(int level)
The default matching text is blank (""). The default confidence level is zero (0.0)
level - the page iterator level. See TessBaseAPI.PageIteratorLevel.public void delete()