The
OcrParams structure collects the input parameters of the
GetOcr function. See
Optical Recognition Functions for details. The parameters are as follows:
- The appointed recognition area should be declared as one of the following structures:
- The ImageFrame is a
gxPG4
structure which is an array of integers and contains coordinates of a frame in 1/16 pixels. - The WindowFrame is a
gxPG4
structure which is an array of integers and contains coordinates of a frame in micron.
- The CharHeight has to be the font height in micron.
- The SpaceWidth has to be the space width in percentage.
- The SpaceType is the type of space. Currently the following values are accepted: 0 - edges, 1 - centers.
- The Justification of the text has to be one of the following values: 0 - left, 1 - right, 2 - center.
- The FontType is the font name. The document/fonttypes property contains a comma separated list of the usable font names.
OcrParams structure