LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetStateRecognitionCharacter Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrOmrOptions Interface : GetStateRecognitionCharacter Method



state
The OMR state for this character.

The GetStateRecognitionCharacter Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

state
The OMR state for this character.
Gets the character used to represent an OMR state in the output document.

Syntax

Visual Basic (Declaration) 
Function GetStateRecognitionCharacter( _
   ByVal state As OcrOmrZoneState _
) As Char
Visual Basic (Usage)Copy Code
Dim instance As IOcrOmrOptions
Dim state As OcrOmrZoneState
Dim value As Char
 
value = instance.GetStateRecognitionCharacter(state)
C# 
char GetStateRecognitionCharacter( 
   OcrOmrZoneState state
)
C++/CLI 
char GetStateRecognitionCharacter( 
   OcrOmrZoneState state
) 

Parameters

state
The OMR state for this character.

Return Value

A System.Char that indicates the character used to represent the given OMR state in the output document.

Example

For an example, refer to IOcrOmrOptions.

Remarks

OMR stands for Optical Mark Recognition. For more information refer to Using OMR in LEADTOOLS .NET OCR.

When performing OMR recognition, you can obtain the OMR results by inspecting the OcrZone.OmrState property. Moreover the engine will add a character to represent each zone (mark) state into the recognition results. This character will then be outputted to the final document when IOcrDocument.Save or IOcrDocument.SaveXml is called.

The character will also be present as the zone data when calling IOcrPage.GetRecognizedCharacters.

The default characters used in the IOcrEngine is as follows:

State Value
OcrOmrZoneState.Unfilled 0
OcrOmrZoneState.Filled 1

You can get the current values using the GetStateRecognitionCharacter method, you can also change them using the SetStateRecognitionCharacter method. If you do not want any OMR characters to show up in the final document, you can set all state characters to ' ' (a space character).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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