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>> |
getSymbolChoicesAndConfidence()
Returns all possible matching text strings and their confidence level
for the current object.
|
String |
getUTF8Text(int level)
Returns the text string for the current object at the given level.
|
boolean |
isAtBeginningOf(int level)
Returns true if the iterator is at the start of an object at the given
level.
|
boolean |
isAtFinalElement(int level,
int element)
Returns whether the iterator is positioned at the last element in a
given level.
|
begin, getBoundingBox, getBoundingRect, next
public 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 boolean isAtBeginningOf(int level)
level
- the page iterator level. See TessBaseAPI.PageIteratorLevel
.true
if iterator points to the start of an object at the given level.public boolean isAtFinalElement(int level, int element)
level
- the page iterator level. See TessBaseAPI.PageIteratorLevel
.element
- the page iterator level. See TessBaseAPI.PageIteratorLevel
.true
if iterator points to the last element in a given level.public List<Pair<String,Double>> getSymbolChoicesAndConfidence()
The default matching text is blank (""). The default confidence level is zero (0.0)
public void delete()