RecAPI
|
ZONE structure. More...
#include <KernelApi.h>
Public Attributes | |
RECT | rectBBox |
ZONETYPE | type |
DWORD | userdata |
DWORD | chk_control |
FILLINGMETHOD | fm |
RECOGNITIONMODULE | rm |
CHR_FILTER | filter |
LPCHECKWORD_CB | chk_fn |
char | chk_sect [MAXSECTNAMELEN] |
ZONE structure.
The ZONE structure contains all the necessary information for describing a zone. A zone is a rectangular or pizza-box shaped area on an image (Only OMR zones can be non-pizza-box shaped; and table zones and vertical text zones must be rectangular), but ZONE contains only its bounding box. It contains a feature of interest to the user. The image data covered by each zone is handled and processed (typically recognized) separately. A very first classification of the zones is their type: whether a zone's area is to be recognized or it should be treated as graphic. Zones containing textual information can be either flowed type or table type zones. This basic classification of zones helps the Engine to handle the textual information correctly. Zones are always associated with a FILLINGMETHOD filling method and one of the available RECOGNITIONMODULE recognition modules. These determine what kind of recognition algorithm is applied to the zone during its processing. For possible RM-FM pairs see Filling method - Recognition module combinations.
DWORD _ZONE::chk_control |
Checking control bit mask flag. It controls how the checking module checks the recognized result for the zone.
LPCHECKWORD_CB _ZONE::chk_fn |
Deprecated. Set it to NULL.
char _ZONE::chk_sect[MAXSECTNAMELEN] |
Deprecated. Set it to an empty string.
CHR_FILTER _ZONE::filter |
Character Set filter for the zone (CHR_FILTER). It is used to modify the set of valid characters for recognition of the zone. Specifying the Character Set correctly is a recognition accuracy issue.
FILLINGMETHOD _ZONE::fm |
Zone filling method (FILLINGMETHOD).
RECT _ZONE::rectBBox |
Bounding box of the rects. To obtain the exact layout of the zone call kRecGetZoneLayout or kRecGetOCRZoneLayout.
RECOGNITIONMODULE _ZONE::rm |
Recognition module associated with the zone (RECOGNITIONMODULE).
ZONETYPE _ZONE::type |
Zone type.
DWORD _ZONE::userdata |
User-defined content. This field can be freely used by the application for storing zone-specific information. Additional user-defined zone attributes can be set by kRecSetZoneAttribute.