Class ITessAPI.ETEXT_DESC

java.lang.Object
com.sun.jna.Structure
net.sourceforge.tess4j.ITessAPI.ETEXT_DESC
Enclosing interface:
ITessAPI

public static class ITessAPI.ETEXT_DESC extends com.sun.jna.Structure
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 cancelled.
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class com.sun.jna.Structure Link icon

    com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    returns true to cancel
    com.sun.jna.Pointer
    this or other data for cancel
    short
    chars in this buffer(0).
    time to stop if not 0
    byte
    for errcode use
    byte
    true if not last
    byte
    ocr sets to 1, HP 0
    short
    percent complete increasing (0-100)
    character data

    Fields inherited from class com.sun.jna.Structure Link icon

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected List<String>
    Gets Field Order.

    Methods inherited from class com.sun.jna.Structure Link icon

    allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • count Link icon

      public short count
      chars in this buffer(0). Total number of UTF-8 bytes for this run.
    • progress Link icon

      public short progress
      percent complete increasing (0-100)
    • more_to_come Link icon

      public byte more_to_come
      true if not last
    • ocr_alive Link icon

      public byte ocr_alive
      ocr sets to 1, HP 0
    • err_code Link icon

      public byte err_code
      for errcode use
    • cancel Link icon

      public ITessAPI.CANCEL_FUNC cancel
      returns true to cancel
    • cancel_this Link icon

      public com.sun.jna.Pointer cancel_this
      this or other data for cancel
    • end_time Link icon

      public ITessAPI.TimeVal end_time
      time to stop if not 0
    • text Link icon

      public ITessAPI.EANYCODE_CHAR[] text
      character data
  • Constructor Details Link icon

    • ETEXT_DESC Link icon

      public ETEXT_DESC()
  • Method Details Link icon

    • getFieldOrder Link icon

      protected List<String> getFieldOrder()
      Gets Field Order.
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
      Returns: