Package org.bytedeco.tesseract
Class EANYCODE_CHAR
- java.lang.Object
-
- org.bytedeco.javacpp.Pointer
-
- org.bytedeco.tesseract.EANYCODE_CHAR
-
- All Implemented Interfaces:
AutoCloseable
@Namespace("tesseract") @Properties(inherit=tesseract.class) public class EANYCODE_CHAR extends Pointer
EANYCODE_CHAR Description of a single character. The character code is defined by the character set of the current font. Output text is sent as an array of these structures. Spaces and line endings in the output are represented in the structures of the surrounding characters. They are not directly represented as characters. The first character in a word has a positive value of blanks. Missing information should be set to the defaults in the comments. If word bounds are known, but not character bounds, then the top and bottom of each character should be those of the word. The left of the first and right of the last char in each word should be set. All other lefts and rights should be set to -1. If set, the values of right and bottom are left+width and top+height. Most of the members come directly from the parameters to ocr_append_char. The formatting member uses the enhancement parameter and combines the line direction stuff into the top 3 bits. The coding is 0=RL char, 1=LR char, 2=DR NL, 3=UL NL, 4=DR Para, 5=UL Para, 6=TB char, 7=BT char. API users do not need to know what the coding is, only that it is backwards compatible with the previous version.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
-
Constructor Summary
Constructors Constructor Description EANYCODE_CHAR()Default native constructor.EANYCODE_CHAR(long size)Native array allocator.EANYCODE_CHAR(Pointer p)Pointer cast constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byteblanks()EANYCODE_CHARblanks(byte setter)shortbottom()EANYCODE_CHARbottom(short setter)shortchar_code()EANYCODE_CHARchar_code(short setter)byteconfidence()EANYCODE_CHARconfidence(byte setter)shortfont_index()EANYCODE_CHARfont_index(short setter)byteformatting()EANYCODE_CHARformatting(byte setter)EANYCODE_CHARgetPointer(long i)shortleft()EANYCODE_CHARleft(short setter)bytepoint_size()EANYCODE_CHARpoint_size(byte setter)EANYCODE_CHARposition(long position)shortright()EANYCODE_CHARright(short setter)shorttop()EANYCODE_CHARtop(short setter)-
Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, trimMemory, withDeallocator, zero
-
-
-
-
Constructor Detail
-
EANYCODE_CHAR
public EANYCODE_CHAR()
Default native constructor.
-
EANYCODE_CHAR
public EANYCODE_CHAR(long size)
Native array allocator. Access withPointer.position(long).
-
EANYCODE_CHAR
public EANYCODE_CHAR(Pointer p)
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Detail
-
position
public EANYCODE_CHAR position(long position)
-
getPointer
public EANYCODE_CHAR getPointer(long i)
- Overrides:
getPointerin classPointer
-
char_code
@Cast("uint16_t") public short char_code()
-
char_code
public EANYCODE_CHAR char_code(short setter)
-
left
public short left()
-
left
public EANYCODE_CHAR left(short setter)
-
right
public short right()
-
right
public EANYCODE_CHAR right(short setter)
-
top
public short top()
-
top
public EANYCODE_CHAR top(short setter)
-
bottom
public short bottom()
-
bottom
public EANYCODE_CHAR bottom(short setter)
-
font_index
public short font_index()
-
font_index
public EANYCODE_CHAR font_index(short setter)
-
confidence
@Cast("uint8_t") public byte confidence()
-
confidence
public EANYCODE_CHAR confidence(byte setter)
-
point_size
@Cast("uint8_t") public byte point_size()
-
point_size
public EANYCODE_CHAR point_size(byte setter)
-
blanks
public byte blanks()
-
blanks
public EANYCODE_CHAR blanks(byte setter)
-
formatting
@Cast("uint8_t") public byte formatting()
-
formatting
public EANYCODE_CHAR formatting(byte setter)
-
-