EANYCODE_CHAR Struct Reference

#include <ocrclass.h>

List of all members.


Detailed Description

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.

Definition at line 276 of file ocrclass.h.

Public Attributes


Member Data Documentation

INT8 EANYCODE_CHAR::blanks

Definition at line 286 of file ocrclass.h.

Referenced by ocr_append_char().

INT16 EANYCODE_CHAR::bottom

Definition at line 282 of file ocrclass.h.

Referenced by ocr_append_char().

UINT16 EANYCODE_CHAR::char_code

Definition at line 278 of file ocrclass.h.

Referenced by ocr_append_char().

UINT8 EANYCODE_CHAR::confidence

Definition at line 284 of file ocrclass.h.

Referenced by ocr_append_char().

INT16 EANYCODE_CHAR::font_index

Definition at line 283 of file ocrclass.h.

Referenced by ocr_append_char().

UINT8 EANYCODE_CHAR::formatting

Definition at line 287 of file ocrclass.h.

Referenced by ocr_append_char(), and ocr_send_text().

INT16 EANYCODE_CHAR::left

Definition at line 279 of file ocrclass.h.

Referenced by ocr_append_char().

UINT8 EANYCODE_CHAR::point_size

Definition at line 285 of file ocrclass.h.

Referenced by ocr_append_char().

INT16 EANYCODE_CHAR::right

Definition at line 280 of file ocrclass.h.

Referenced by ocr_append_char().

INT16 EANYCODE_CHAR::top

Definition at line 281 of file ocrclass.h.

Referenced by ocr_append_char().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 28 19:49:31 2007 for Tesseract by  doxygen 1.5.1