RecAPI
ZONE Struct Reference

ZONE structure. More...

List of all members.

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]

Detailed Description

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.

Note:
Zones in a page are built into a sequential list, called the zone list. Each zone receives an internal index number, reflecting its position in this list. In some cases this zone order even determines the zone content order in the final output document. The index of the first zone in the zone list is zero (0).
It is recommended to create homogeneous user zones as much as possible, because they may give better results. It is especially important in the case of Asian languages. WT_AUTO zones can be inhomogeneous.

Member Data Documentation

Checking control bit mask flag. It controls how the checking module checks the recognized result for the zone.

Deprecated. Set it to NULL.

char ZONE::chk_sect[MAXSECTNAMELEN]

Deprecated. Set it to an empty string.

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.

Zone filling method (FILLINGMETHOD).

Bounding box of the rects. To obtain the exact layout of the zone call kRecGetZoneLayout or kRecGetOCRZoneLayout.

Recognition module associated with the zone (RECOGNITIONMODULE).

Zone type.

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.