Sets the character used to represent an OMR state in the output document.
void SetStateRecognitionCharacter(
Leadtools.Forms.Ocr.OcrOmrZoneState state,
char value
)
Sub SetStateRecognitionCharacter( _
ByVal state As Leadtools.Forms.Ocr.OcrOmrZoneState, _
ByVal value As Char _
)
void SetStateRecognitionCharacter(
Leadtools.Forms.Ocr.OcrOmrZoneState state,
char value
)
- (void)setRecognitionCharacter:(unichar)character
forState:(LTOcrOmrZoneState)state
function Leadtools.Forms.Ocr.IOcrOmrOptions.SetStateRecognitionCharacter(
state ,
value
)
void SetStateRecognitionCharacter(
Leadtools.Forms.Ocr.OcrOmrZoneState state,
char value
)
state
The OMR state for this character.
value
The character value.
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).
For an example, refer to IOcrOmrOptions.
Products |
Support |
Feedback: SetStateRecognitionCharacter Method - Leadtools.Forms.Ocr |
Introduction |
Help Version 19.0.2017.6.6
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.