Click or drag to resize

DocumentLocateZones Method

This method automatically locates all OCR zones on the related pages and builds the OCRZone collection using auto-zoning.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void LocateZones(
	[OptionalAttribute] Object Pages
)

Parameters

Pages (Optional)
Type: SystemObject
Remarks

It deletes any previously created OCRZone objects and any references to these objects become invalid. The auto-zoning related settings are available through the DecompMethod, NongriddedTableDetect, AutoZoning_Column, AutoZoning_Table, AutoZoning_Graphics and AutoZoning_Form properties.

Pages is an optional parameter of type RUNPAGE. To see the available values, see the description of the ImagePreprocess method. If the Pages parameter is unspecified, all document pages are processed.

As part of the zone analysis, the LocateZones method performs image preprocessing if the particular page is not already preprocessed. After the method returns, the OCRZones collection is updated and the content of the UserZones collection is changed to synchronize with the zone analysis generated set.

Calling this method changes the related page properties as follows: The Characters collection is reset. The DecompTime property is recalculated and the other properties of the Statistics object except the ImageLoadTime and PreprocTime properties will be set to zero. The Recognized property is cleared.

Calling this method sets the Modified property to True.

See Also