LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)
LEAD Technologies, Inc

DetectFillMethod Method






Detects the type of text in this IOcrPage. .NET support
Syntax
OcrZoneFillMethod DetectFillMethod()
'Declaration
 
Function DetectFillMethod() As OcrZoneFillMethod
'Usage
 
Dim instance As IOcrPage
Dim value As OcrZoneFillMethod
 
value = instance.DetectFillMethod()
OcrZoneFillMethod DetectFillMethod()
function Leadtools.Forms.Ocr.IOcrPage.DetectFillMethod()
OcrZoneFillMethod DetectFillMethod(); 

Return Value

An OcrZoneFillMethod enumeration member that specifies the type of text in this IOcrPage.
Remarks

This method tries to determine the type of the text in the IOcrPage globally (e.g. handprinted, machine printed or dot-matrix printed text).

This method is useful when this is a page with an unknown or uncertain type of text. (This case quite often occurs when you work with filled forms.) The types of zones that can be detected with this method are:

  1. OcrZoneFillMethod.OmniFont
  2. OcrZoneFillMethod.DraftDotMatrix9
  3. OcrZoneFillMethod.DraftDotMatrix24
  4. OcrZoneFillMethod.Icr
  5. OcrZoneFillMethod.NoRecognition

Note, you must either add zones manually or automatically to this page (with AutoZone) before you can call DetectFillMethod.

To update the zones of this IOcrPage with the detected fill method, use UpdateFillMethod

Note: This method will always return OcrZoneFillMethod.Defaultfor the LEADTOOLS OCR Advantage Engine since this engine doesn't support fill methods.

Example
For an example, refer to AutoZone.
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

IOcrPage Interface
IOcrPage Members
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Recognize Method
Programming with the LEADTOOLS .NET OCR

 

 


Products | Support | Contact Us | Copyright Notices

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

DetectFillMethod requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features