|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.Structure net.sourceforge.tess4j.ETEXT_DESC
public class ETEXT_DESC
Description of the output of the OCR engine.
This structure is used as both a progress monitor and the final
output header, since it needs to be a valid progress monitor while
the OCR engine is storing its output to shared memory.
During progress, all the buffer info is -1.
Progress starts at 0 and increases to 100 during OCR. No other constraint.
Every progress callback, the OCR engine must set ocr_alive
to 1.
The HP side will set ocr_alive
to 0. Repeated failure to reset
to 1 indicates that the OCR engine is dead.
If the cancel function is not null, then it is called with the number of
user words found. If it returns true, then operation is canceled.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.jna.Structure |
---|
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue |
Field Summary | |
---|---|
TessDllAPI.CANCEL_FUNC |
cancel
returns true to cancel |
com.sun.jna.Pointer |
cancel_this
this or other data for cancel |
short |
count
chars in this buffer(0). |
com.sun.jna.NativeLong |
end_time
time to stop if not 0 |
byte |
err_code
for errcode use |
byte |
more_to_come
true if not last |
byte |
ocr_alive
ocr sets to 1, HP 0 |
short |
progress
percent complete increasing (0-100) |
EANYCODE_CHAR[] |
text
character data |
Fields inherited from class com.sun.jna.Structure |
---|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE |
Constructor Summary | |
---|---|
ETEXT_DESC()
|
Method Summary |
---|
Methods inherited from class com.sun.jna.Structure |
---|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getFields, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public short count
public short progress
public byte more_to_come
public byte ocr_alive
public byte err_code
public TessDllAPI.CANCEL_FUNC cancel
public com.sun.jna.Pointer cancel_this
public com.sun.jna.NativeLong end_time
public EANYCODE_CHAR[] text
Constructor Detail |
---|
public ETEXT_DESC()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |