@Namespace(value="tesseract") @NoOffset @Properties(inherit=tesseract.class) public class PageIterator extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
PageIterator(PAGE_RES page_res,
Tesseract tesseract,
int scale,
int scaled_yres,
int rect_left,
int rect_top,
int rect_width,
int rect_height)
page_res and tesseract come directly from the BaseAPI.
|
PageIterator(PageIterator src)
Page/ResultIterators may be copied! This makes it possible to iterate over
all the objects at a lower level, while maintaining an iterator to
objects at a higher level.
|
PageIterator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Baseline(int level,
int[] x1,
int[] y1,
int[] x2,
int[] y2) |
boolean |
Baseline(int level,
IntBuffer x1,
IntBuffer y1,
IntBuffer x2,
IntBuffer y2) |
boolean |
Baseline(int level,
IntPointer x1,
IntPointer y1,
IntPointer x2,
IntPointer y2)
Returns the baseline of the current object at the given level.
|
void |
Begin()
Moves the iterator to point to the start of the page to begin an
iteration.
|
org.bytedeco.leptonica.PTA |
BlockPolygon()
Returns the polygon outline of the current block.
|
int |
BlockType()
Returns the type of the current block.
|
boolean |
BoundingBox(int level,
int[] left,
int[] top,
int[] right,
int[] bottom) |
boolean |
BoundingBox(int level,
IntBuffer left,
IntBuffer top,
IntBuffer right,
IntBuffer bottom) |
boolean |
BoundingBox(int level,
int padding,
int[] left,
int[] top,
int[] right,
int[] bottom) |
boolean |
BoundingBox(int level,
int padding,
IntBuffer left,
IntBuffer top,
IntBuffer right,
IntBuffer bottom) |
boolean |
BoundingBox(int level,
int padding,
IntPointer left,
IntPointer top,
IntPointer right,
IntPointer bottom) |
boolean |
BoundingBox(int level,
IntPointer left,
IntPointer top,
IntPointer right,
IntPointer bottom)
Returns the bounding rectangle of the current object at the given level.
|
boolean |
BoundingBoxInternal(int level,
int[] left,
int[] top,
int[] right,
int[] bottom) |
boolean |
BoundingBoxInternal(int level,
IntBuffer left,
IntBuffer top,
IntBuffer right,
IntBuffer bottom) |
boolean |
BoundingBoxInternal(int level,
IntPointer left,
IntPointer top,
IntPointer right,
IntPointer bottom)
Returns the bounding rectangle of the object in a coordinate system of the
working image rectangle having its origin at (rect_left_, rect_top_) with
respect to the original image and is scaled by a factor scale_.
|
int |
Cmp(PageIterator other)
Returns whether this iterator is positioned
before other: -1
equal to other: 0
after other: 1
|
boolean |
Empty(int level)
Returns whether there is no object of a given level.
|
org.bytedeco.leptonica.PIX |
GetBinaryImage(int level)
Returns a binary image of the current object at the given level.
|
org.bytedeco.leptonica.PIX |
GetImage(int level,
int padding,
org.bytedeco.leptonica.PIX original_img,
int[] left,
int[] top) |
org.bytedeco.leptonica.PIX |
GetImage(int level,
int padding,
org.bytedeco.leptonica.PIX original_img,
IntBuffer left,
IntBuffer top) |
org.bytedeco.leptonica.PIX |
GetImage(int level,
int padding,
org.bytedeco.leptonica.PIX original_img,
IntPointer left,
IntPointer top)
Returns an image of the current object at the given level in greyscale
if available in the input.
|
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.
|
boolean |
IsWithinFirstTextlineOfParagraph()
Return whether this iterator points anywhere in the first textline of a
paragraph.
|
boolean |
Next(int level)
Moves to the start of the next object at the given level in the
page hierarchy, and returns false if the end of the page was reached.
|
void |
Orientation(int[] orientation,
int[] writing_direction,
int[] textline_order,
float[] deskew_angle) |
void |
Orientation(IntBuffer orientation,
IntBuffer writing_direction,
IntBuffer textline_order,
FloatBuffer deskew_angle) |
void |
Orientation(IntPointer orientation,
IntPointer writing_direction,
IntPointer textline_order,
FloatPointer deskew_angle)
Returns orientation for the block the iterator points to.
|
void |
ParagraphInfo(int[] justification,
boolean[] is_list_item,
boolean[] is_crown,
int[] first_line_indent) |
void |
ParagraphInfo(int[] justification,
BoolPointer is_list_item,
BoolPointer is_crown,
int[] first_line_indent) |
void |
ParagraphInfo(IntBuffer justification,
boolean[] is_list_item,
boolean[] is_crown,
IntBuffer first_line_indent) |
void |
ParagraphInfo(IntBuffer justification,
BoolPointer is_list_item,
BoolPointer is_crown,
IntBuffer first_line_indent) |
void |
ParagraphInfo(IntPointer justification,
boolean[] is_list_item,
boolean[] is_crown,
IntPointer first_line_indent) |
void |
ParagraphInfo(IntPointer justification,
BoolPointer is_list_item,
BoolPointer is_crown,
IntPointer first_line_indent)
Returns information about the current paragraph, if available.
|
boolean |
PositionedAtSameWord(PAGE_RES_IT other)
Are we positioned at the same location as other?
|
PageIterator |
put(PageIterator src) |
void |
RestartParagraph()
Moves the iterator to the beginning of the paragraph.
|
void |
RestartRow()
Moves the iterator to the beginning of the text line.
|
void |
RowAttributes(float[] row_height,
float[] descenders,
float[] ascenders) |
void |
RowAttributes(FloatBuffer row_height,
FloatBuffer descenders,
FloatBuffer ascenders) |
void |
RowAttributes(FloatPointer row_height,
FloatPointer descenders,
FloatPointer ascenders) |
void |
SetBoundingBoxComponents(boolean include_upper_dots,
boolean include_lower_dots)
Controls what to include in a bounding box.
|
boolean |
SetWordBlamerBundle(BlamerBundle blamer_bundle) |
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 PageIterator(Pointer p)
Pointer(Pointer)
.public PageIterator(PAGE_RES page_res, Tesseract tesseract, int scale, int scaled_yres, int rect_left, int rect_top, int rect_width, int rect_height)
public PageIterator(@Const @ByRef PageIterator src)
@Const @ByRef @Name(value="operator =") public PageIterator put(@Const @ByRef PageIterator src)
@Cast(value="bool") public boolean PositionedAtSameWord(@Const PAGE_RES_IT other)
public void Begin()
public void RestartParagraph()
@Cast(value="bool") public boolean IsWithinFirstTextlineOfParagraph()
public void RestartRow()
@Cast(value="bool") public boolean Next(@Cast(value="tesseract::PageIteratorLevel") int level)
@Cast(value="bool") public boolean IsAtBeginningOf(@Cast(value="tesseract::PageIteratorLevel") int level)
@Cast(value="bool") public boolean IsAtFinalElement(@Cast(value="tesseract::PageIteratorLevel") int level, @Cast(value="tesseract::PageIteratorLevel") int element)
public int Cmp(@Const @ByRef PageIterator other)
public void SetBoundingBoxComponents(@Cast(value="bool") boolean include_upper_dots, @Cast(value="bool") boolean include_lower_dots)
@Cast(value="bool") public boolean BoundingBox(@Cast(value="tesseract::PageIteratorLevel") int level, IntPointer left, IntPointer top, IntPointer right, IntPointer bottom)
@Cast(value="bool") public boolean BoundingBox(@Cast(value="tesseract::PageIteratorLevel") int level, IntBuffer left, IntBuffer top, IntBuffer right, IntBuffer bottom)
@Cast(value="bool") public boolean BoundingBox(@Cast(value="tesseract::PageIteratorLevel") int level, int[] left, int[] top, int[] right, int[] bottom)
@Cast(value="bool") public boolean BoundingBox(@Cast(value="tesseract::PageIteratorLevel") int level, int padding, IntPointer left, IntPointer top, IntPointer right, IntPointer bottom)
@Cast(value="bool") public boolean BoundingBox(@Cast(value="tesseract::PageIteratorLevel") int level, int padding, IntBuffer left, IntBuffer top, IntBuffer right, IntBuffer bottom)
@Cast(value="bool") public boolean BoundingBox(@Cast(value="tesseract::PageIteratorLevel") int level, int padding, int[] left, int[] top, int[] right, int[] bottom)
@Cast(value="bool") public boolean BoundingBoxInternal(@Cast(value="tesseract::PageIteratorLevel") int level, IntPointer left, IntPointer top, IntPointer right, IntPointer bottom)
@Cast(value="bool") public boolean BoundingBoxInternal(@Cast(value="tesseract::PageIteratorLevel") int level, IntBuffer left, IntBuffer top, IntBuffer right, IntBuffer bottom)
@Cast(value="bool") public boolean BoundingBoxInternal(@Cast(value="tesseract::PageIteratorLevel") int level, int[] left, int[] top, int[] right, int[] bottom)
@Cast(value="bool") public boolean Empty(@Cast(value="tesseract::PageIteratorLevel") int level)
@Cast(value="tesseract::PolyBlockType") public int BlockType()
public org.bytedeco.leptonica.PTA BlockPolygon()
public org.bytedeco.leptonica.PIX GetBinaryImage(@Cast(value="tesseract::PageIteratorLevel") int level)
public org.bytedeco.leptonica.PIX GetImage(@Cast(value="tesseract::PageIteratorLevel") int level, int padding, org.bytedeco.leptonica.PIX original_img, IntPointer left, IntPointer top)
public org.bytedeco.leptonica.PIX GetImage(@Cast(value="tesseract::PageIteratorLevel") int level, int padding, org.bytedeco.leptonica.PIX original_img, IntBuffer left, IntBuffer top)
public org.bytedeco.leptonica.PIX GetImage(@Cast(value="tesseract::PageIteratorLevel") int level, int padding, org.bytedeco.leptonica.PIX original_img, int[] left, int[] top)
@Cast(value="bool") public boolean Baseline(@Cast(value="tesseract::PageIteratorLevel") int level, IntPointer x1, IntPointer y1, IntPointer x2, IntPointer y2)
@Cast(value="bool") public boolean Baseline(@Cast(value="tesseract::PageIteratorLevel") int level, IntBuffer x1, IntBuffer y1, IntBuffer x2, IntBuffer y2)
@Cast(value="bool") public boolean Baseline(@Cast(value="tesseract::PageIteratorLevel") int level, int[] x1, int[] y1, int[] x2, int[] y2)
public void RowAttributes(FloatPointer row_height, FloatPointer descenders, FloatPointer ascenders)
public void RowAttributes(FloatBuffer row_height, FloatBuffer descenders, FloatBuffer ascenders)
public void RowAttributes(float[] row_height, float[] descenders, float[] ascenders)
public void Orientation(@Cast(value="tesseract::Orientation*") IntPointer orientation, @Cast(value="tesseract::WritingDirection*") IntPointer writing_direction, @Cast(value="tesseract::TextlineOrder*") IntPointer textline_order, FloatPointer deskew_angle)
public void Orientation(@Cast(value="tesseract::Orientation*") IntBuffer orientation, @Cast(value="tesseract::WritingDirection*") IntBuffer writing_direction, @Cast(value="tesseract::TextlineOrder*") IntBuffer textline_order, FloatBuffer deskew_angle)
public void Orientation(@Cast(value="tesseract::Orientation*") int[] orientation, @Cast(value="tesseract::WritingDirection*") int[] writing_direction, @Cast(value="tesseract::TextlineOrder*") int[] textline_order, float[] deskew_angle)
public void ParagraphInfo(@Cast(value="tesseract::ParagraphJustification*") IntPointer justification, @Cast(value="bool*") BoolPointer is_list_item, @Cast(value="bool*") BoolPointer is_crown, IntPointer first_line_indent)
public void ParagraphInfo(@Cast(value="tesseract::ParagraphJustification*") IntBuffer justification, @Cast(value="bool*") boolean[] is_list_item, @Cast(value="bool*") boolean[] is_crown, IntBuffer first_line_indent)
public void ParagraphInfo(@Cast(value="tesseract::ParagraphJustification*") int[] justification, @Cast(value="bool*") BoolPointer is_list_item, @Cast(value="bool*") BoolPointer is_crown, int[] first_line_indent)
public void ParagraphInfo(@Cast(value="tesseract::ParagraphJustification*") IntPointer justification, @Cast(value="bool*") boolean[] is_list_item, @Cast(value="bool*") boolean[] is_crown, IntPointer first_line_indent)
public void ParagraphInfo(@Cast(value="tesseract::ParagraphJustification*") IntBuffer justification, @Cast(value="bool*") BoolPointer is_list_item, @Cast(value="bool*") BoolPointer is_crown, IntBuffer first_line_indent)
public void ParagraphInfo(@Cast(value="tesseract::ParagraphJustification*") int[] justification, @Cast(value="bool*") boolean[] is_list_item, @Cast(value="bool*") boolean[] is_crown, int[] first_line_indent)
@Cast(value="bool") public boolean SetWordBlamerBundle(BlamerBundle blamer_bundle)
Copyright © 2024. All rights reserved.