L_Doc2UpdateZoneExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2UpdateZoneExt(hDoc, nDocId, nPageIndex, nZoneIndex, pZoneData)

Updates the zone data of a single zone in the zone list.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.

L_INT nPageIndex

Zero-based index of the page that contains the zone to be updated.

L_INT nZoneIndex

Zero-based index of the zone to be updated.

pZONEDATA2 pZoneData

Pointer to the ZONEDATA2 structure that contains information used to update the zone.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

When adding a zone, the application should directly initialize the following members of ZONEDATA2 structure, since these members do not take default values:

uStructSize   
rcArea   
FillMethod   
CharFilter   
Type   
RecogModule 

The Type member of the ZONEDATA2 structure should be one of the following values:

The index of the first zone in the zone list is zero (0).

To update only the zone area, call the L_Doc2Zone / L_Doc2ZoneExt function.

For OCR zones (zones detected by calling the L_Doc2FindZones / L_Doc2FindZonesExt function), the following members cannot be changed:

ZONEDATA2.rcArea  
ZONEDATA2.Type 
ZONEDATA2.pfnCallback 

You can update all ZONEDATA2 members for user zones.

Required DLLs and Libraries

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help