LEADTOOLS WCF OCR (Leadtools.Services.Forms.DataContracts assembly)
LEAD Technologies, Inc

OcrZone Class






Members 
Rectangular area on a page containing a feature of interest to the user.
Object Model
OcrZone Class
Syntax
[DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZone")]
public class OcrZone 
'Declaration
 
<DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZone")>
Public Class OcrZone 
'Usage
 
Dim instance As OcrZone
public sealed class OcrZone 
function Leadtools.Services.Forms.DataContracts.OcrZone()
[DataContractAttribute(Namespace="http://Leadtools.Services.Forms.DataContracts/2009/01", Name="OcrZone")]
public ref class OcrZone 
Remarks

The OcrZone class contains all the necessary information for describing a zone. A zone is a rectangular area on an image containing a feature of interest to the user. The image data covered by each zone is handled and processed (typically recognized) separately.

Access the zones of a page with the OcrPageZones.Zones property. This is a collection allowing the user to examine and modify the various zones on the page.

Zones can be divided into two basic categories: whether a zone is to be recognized or whether it should be treated as graphic. Zones containing text information can be considered to be either of the flowing type or of a table type. This basic classification of zones helps the OCR engine handle text information correctly.

Zones are always associated with a filling method (OcrZoneFillMethod) and one of the available recognition modules (OcrZoneRecognitionModule). These determine which recognition algorithm will be applied to the zone during its processing.

Use the CharacterFilters property to modify the set of valid characters for recognition of the zone. Specifying the character set correctly is a recognition accuracy issue.

Other members of the zone class specify how the checking subsystem will function for the particular zone.

When adding or updating a zone directly initialize the OcrZone.Bounds, OcrZone.FillMethod, OcrZone.RecognitionModule, OcrZone.CharacterFilters and the OcrZone.ZoneType properties of the zone, since they will not take on their default values.

The OcrZone.ZoneType property of the updating zone should be one of the following: OcrZoneType.Text, OcrZoneType.Table or OcrZoneType.Graphics.

It is the developers responsibility to specify a valid recognition module-filling method pair. Otherwise any incorrectly set zone will have no recognition result. For more information, refer to An Overview of OCR Recognition Modules.

LEADTOOLS OCR .NET also supports OMR (Optical Mark Recognition) in all the engines. For more information, refer to Using OMR in LEADTOOLS .NET OCR.

Example
For an example, refer to DocumentConvertOptions.PagesZones
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OcrZone Members
Leadtools.Services.Forms.DataContracts Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Applications developed with LEADTOOLS WCF components require runtime licenses. Server licensing is required for applications on a server. For more information, refer to: Imaging Pro/Document/Medical