@Namespace(value="tesseract") @NoOffset @Properties(inherit=tesseract.class) public class ResultIterator extends LTRResultIterator
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ResultIterator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Begin()
Moves the iterator to point to the start of the page to begin
an iteration.
|
int |
BlanksBeforeWord() |
static void |
CalculateTextlineOrder(boolean paragraph_is_ltr,
int[] word_dirs,
int[] reading_order) |
static void |
CalculateTextlineOrder(boolean paragraph_is_ltr,
IntBuffer word_dirs,
IntBuffer reading_order) |
static void |
CalculateTextlineOrder(boolean paragraph_is_ltr,
IntPointer word_dirs,
IntPointer reading_order)
Yields the reading order as a sequence of indices and (optional)
meta-marks for a set of words (given left-to-right).
|
StringFloatPairVectorVector |
GetBestLSTMSymbolChoices() |
StringFloatPairVectorVector |
GetRawLSTMTimesteps()
Returns the LSTM choices for every LSTM timestep for the current word.
|
BytePointer |
GetUTF8Text(int level)
Returns the null terminated UTF-8 encoded text string for the current
object at the given level.
|
boolean |
IsAtBeginningOf(int level)
IsAtBeginningOf() returns whether we're at the logical beginning of the
given level.
|
boolean |
IsAtFinalElement(int level,
int element)
Implement PageIterator's IsAtFinalElement correctly in a BiDi context.
|
boolean |
Next(int level)
Moves to the start of the next object at the given level in the
page hierarchy in the appropriate reading order and returns false if
the end of the page was reached.
|
boolean |
ParagraphIsLtr()
Return whether the current paragraph's dominant reading direction
is left-to-right (as opposed to right-to-left).
|
static ResultIterator |
StartOfParagraph(LTRResultIterator resit) |
Confidence, EquivalentToTruth, EquivalentToTruth, GetBlamerDebug, GetBlamerMisadaptionDebug, GetParamsTrainingBundle, HasBlamerInfo, HasTruthString, SetLineSeparator, SetLineSeparator, SetParagraphSeparator, SetParagraphSeparator, SymbolIsDropcap, SymbolIsSubscript, SymbolIsSuperscript, WordDirection, WordFontAttributes, WordFontAttributes, WordFontAttributes, WordFontAttributes, WordFontAttributes, WordFontAttributes, WordIsFromDictionary, WordIsNumeric, WordLattice, WordLattice, WordLattice, WordNormedUTF8Text, WordRecognitionLanguage, WordTruthUTF8Text
Baseline, Baseline, Baseline, BlockPolygon, BlockType, BoundingBox, BoundingBox, BoundingBox, BoundingBox, BoundingBox, BoundingBox, BoundingBoxInternal, BoundingBoxInternal, BoundingBoxInternal, Cmp, Empty, GetBinaryImage, GetImage, GetImage, GetImage, IsWithinFirstTextlineOfParagraph, Orientation, Orientation, Orientation, ParagraphInfo, ParagraphInfo, ParagraphInfo, ParagraphInfo, ParagraphInfo, ParagraphInfo, PositionedAtSameWord, put, RestartParagraph, RestartRow, RowAttributes, RowAttributes, RowAttributes, SetBoundingBoxComponents, SetWordBlamerBundle
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ResultIterator(Pointer p)
Pointer(Pointer)
.public static ResultIterator StartOfParagraph(@Const @ByRef LTRResultIterator resit)
public void Begin()
Begin
in class PageIterator
@Cast(value="bool") public boolean Next(@Cast(value="tesseract::PageIteratorLevel") int level)
Next
in class PageIterator
@Cast(value="bool") public boolean IsAtBeginningOf(@Cast(value="tesseract::PageIteratorLevel") int level)
IsAtBeginningOf
in class PageIterator
@Cast(value="bool") public boolean IsAtFinalElement(@Cast(value="tesseract::PageIteratorLevel") int level, @Cast(value="tesseract::PageIteratorLevel") int element)
IsAtFinalElement
in class PageIterator
public int BlanksBeforeWord()
BlanksBeforeWord
in class LTRResultIterator
@Cast(value="char*") public BytePointer GetUTF8Text(@Cast(value="tesseract::PageIteratorLevel") int level)
GetUTF8Text
in class LTRResultIterator
@StdVector public StringFloatPairVectorVector GetRawLSTMTimesteps()
public StringFloatPairVectorVector GetBestLSTMSymbolChoices()
@Cast(value="bool") public boolean ParagraphIsLtr()
public static void CalculateTextlineOrder(@Cast(value="bool") boolean paragraph_is_ltr, @Cast(value="tesseract::StrongScriptDirection*") @StdVector IntPointer word_dirs, @StdVector IntPointer reading_order)
public static void CalculateTextlineOrder(@Cast(value="bool") boolean paragraph_is_ltr, @Cast(value="tesseract::StrongScriptDirection*") @StdVector IntBuffer word_dirs, @StdVector IntBuffer reading_order)
public static void CalculateTextlineOrder(@Cast(value="bool") boolean paragraph_is_ltr, @Cast(value="tesseract::StrongScriptDirection*") @StdVector int[] word_dirs, @StdVector int[] reading_order)
Copyright © 2024. All rights reserved.