The DetectFillMethod Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Detects the type of text in this IOcrPage.Visual Basic (Declaration) | |
---|---|
Function DetectFillMethod() As OcrZoneFillMethod |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrPage Dim value As OcrZoneFillMethod value = instance.DetectFillMethod() |
C# | |
---|---|
OcrZoneFillMethod DetectFillMethod() |
C++/CLI | |
---|---|
OcrZoneFillMethod DetectFillMethod(); |
Return Value
An OcrZoneFillMethod enumeration member that specifies the type of text in this IOcrPage.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:
- OcrZoneFillMethod.OmniFont
- OcrZoneFillMethod.DraftDotMatrix9
- OcrZoneFillMethod.DraftDotMatrix24
- OcrZoneFillMethod.Icr
- 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7