Inserts a new zone in the zone list of the hImage image.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_zone_insert( HIG_REC_IMAGE hImage, AT_INT nIndex, LPAT_REC_ZONE lpZoneInfo ); |
Name | Type | Description |
---|---|---|
hImage | HIG_REC_IMAGE | Handle of the image. |
nIndex | AT_INT | Index in the zone list where the new zone should be inserted. Use zero (0) to insert the zone as the first element of the zone list. To insert a zone as the last element of the zone list, use the IG_REC_zones_count_get function to get (and use) the number of zones in the list. |
lpZoneInfo | LPAT_REC_ZONE | Pointer to the zone data to be inserted. |
See IG_REC_image_import.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; AT_INT iZoneCount = 0; AT_REC_ZONE rzInfo; ErrCount = IG_load_file("Multipage.tif", &higImage); ErrCount = IG_REC_image_import(higImage, &higRecImage); ErrCount = IG_REC_zones_locate(higRecImage, NULL); memset(&rzInfo, 0, sizeof(AT_REC_ZONE)); rzInfo.Rect.left = 0; rzInfo.Rect.top = 0; rzInfo.Rect.right = 100; rzInfo.Rect.bottom = 100; rzInfo.FillingMethod = IG_REC_FM_OMNIFONT; rzInfo.RecognitionModule = IG_REC_RM_OMNIFONT_MOR; rzInfo.Filter = (enumIGRecChrFilter)(IG_REC_FILTER_UPPERCASE | IG_REC_FILTER_LOWERCASE); rzInfo.Type = IG_REC_WT_FLOW; ErrCount = IG_REC_zone_insert(higRecImage, 0, &rzInfo); ErrCount = IG_REC_image_delete(higRecImage); ErrCount = IG_image_delete(higImage); |