Visual Basic (Declaration) | |
---|---|
Public Interface IOcrZoneManager |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrZoneManager |
C# | |
---|---|
public interface IOcrZoneManager |
C++/CLI | |
---|---|
public interface class IOcrZoneManager |
You can access the instance of the IOcrZoneManager used by an IOcrEngine through the IOcrEngine.ZoneManager property.
When calling the IOcrPage.AutoZone method on a page, the generated zone's type (OcrZone.ZoneType), recognition module (OcrZone.RecognitionModule) and fill method (OcrZone.FillMethod) will always be one of the supported values as reported by the IOcrZoneManager.
Before manually changing any of the above zone properties, you must determine whether the particular value is supported by this instance of IOcrEngine. You do this by using the instance of IOcrZoneManager of the engine through the IOcrEngine.ZoneManager property as follows:
- To change the zone type, use IsZoneTypeSupported first.
- To change the recognition module, use IsRecognitionModuleSupported first.
- To change the fill method, use IsFillMethodSupported first.
To get all the supported zone types, recognition modules or fill methods use GetSupportedZoneTypes, GetSupportedRecognitionModules and GetSupportedFillMethods respectively.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Reference
IOcrZoneManager MembersLeadtools.Forms.Ocr Namespace
IOcrPage.AutoZone
OcrZoneType Enumeration
OcrZoneRecognitionModule Enumeration
OcrZoneFillMethod Enumeration
OcrEngineManager Class
OcrEngineType Enumeration
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with Leadtools .NET OCR
Working with OCR Zones