public class Boxa
Wrapper for Leptonica's native BOXA.
public Boxa(long nativeBoxa)
Creates a new Box wrapper for the specified native BOX.
nativeBoxa - A pointer to the native Boxa object.public long getNativeBoxa()
Returns a pointer to the native Boxa object.
public int getCount()
public android.graphics.Rect getRect(int index)
Returns an android.graphics.Rect containing the coordinates of this box.
index - which box element to refer topublic kotlin.Array[] getGeometry(int index)
Returns an array containing the coordinates of this box. See INDEX_* constants for indices.
index - which box element to refer topublic boolean getGeometry(int index,
@Size
kotlin.Array[] geometry)
Fills an array containing the coordinates of this box. See INDEX_* constants for indices.
index - which box element to refer togeometry - A 4+ element integer array to fill with coordinates.true on successpublic void recycle()
Releases resources and frees any memory associated with this Box.
protected void finalize()