Class 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.
    • Constructor Detail

      • EANYCODE_CHAR

        public EANYCODE_CHAR()
        Default native constructor.
      • EANYCODE_CHAR

        public EANYCODE_CHAR​(long size)
        Native array allocator. Access with Pointer.position(long).
    • Method Detail

      • char_code

        @Cast("uint16_t")
        public short char_code()
      • left

        public short left()
      • right

        public short right()
      • top

        public short top()
      • bottom

        public short bottom()
      • font_index

        public short font_index()
      • confidence

        @Cast("uint8_t")
        public byte confidence()
      • point_size

        @Cast("uint8_t")
        public byte point_size()
      • blanks

        public byte blanks()
      • formatting

        @Cast("uint8_t")
        public byte formatting()