Error processing SSI file
LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

Show in webframe

SetStateRecognitionCharacter Method








The OMR state for this character.
The character value.
Sets the character used to represent an OMR state in the output document.
Syntax
void SetStateRecognitionCharacter( 
   OcrOmrZoneState state,
   char value
)
'Declaration
 
Sub SetStateRecognitionCharacter( _
   ByVal state As OcrOmrZoneState, _
   ByVal value As Char _
) 
'Usage
 
Dim instance As IOcrOmrOptions
Dim state As OcrOmrZoneState
Dim value As Char
 
instance.SetStateRecognitionCharacter(state, value)
void SetStateRecognitionCharacter( 
   OcrOmrZoneState state,
   char value
)
- (void)setRecognitionCharacter:(unichar)character
                       forState:(LTOcrOmrZoneState)state
            
public void setStateRecognitionCharacter(OcrOmrZoneState state,
                                         char value)
            
function Leadtools.Forms.Ocr.IOcrOmrOptions.SetStateRecognitionCharacter( 
   state ,
   value 
)
void SetStateRecognitionCharacter( 
   OcrOmrZoneState state,
   char value
) 

Parameters

state
The OMR state for this character.
value
The character value.
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 OcrCharacter.Code 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).

Example
For an example, refer to IOcrOmrOptions.
Requirements

Target Platforms

See Also

Reference

IOcrOmrOptions Interface
IOcrOmrOptions Members
OcrEngineManager Class
OcrEngineType Enumeration
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with the LEADTOOLS .NET OCR
Using OMR in LEADTOOLS .NET OCR
Unlocking Special LEAD Features

Error processing SSI file
Leadtools.Forms.Ocr requires a Recognition or Document Imaging Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features