Access Result Attributes
To access result attributes, use one of appropriate properties or methods exposed through the MICR Xpress API.
| VB Example 1 | Copy Code |
|---|---|
|
... 'if recognition was successful, then the text block result will be selected 'access the attributes of the text block using the following properties myString = myMICRXpressObject.TextBlockResultText myConfidence = myMICRXpressObject.TextBlockResultConfidence myXCoordinate = myMICRXpressObject.TextBlockResultAreaX myYCoordinate = myMICRXpressObject.TextBlockResultAreaY myWidth = myMICRXpressObject.TextBlockResultAreaWidth myHeight = myMICRXpressObject.TextBlockResultAreaHeight numTextLines = myMICRXpressObject.TextBlockResultNumberTextLines ... | |
| VB Example 2 | Copy Code |
|---|---|
|
... 'select the text line at a specific index myMICRXpressObject.TextBlockResultSelectTextLineResult 0 'access the attributes of the text line using the following properties myString = myMICRXpressObject.TextLineResultText myConfidence = myMICRXpressObject.TextLineResultConfidence myXCoordinate = myMICRXpressObject.TextLineResultAreaX myYCoordinate = myMICRXpressObject.TextLineResultAreaY myWidth = myMICRXpressObject.TextLineResultAreaWidth myHeight = myMICRXpressObject.TextLineResultAreaHeight numCharacterResults = myMICRXpressObject.TextLineResultNumberCharacters ... | |
| VB Example 3 | Copy Code |
|---|---|
|
... 'select the character result at a specific index myMICRXpressObject.TextLineResultSelectCharacter 0 'access the attributes of the character using the following properties myXCoordinate = myMICRXpressObject.CharacterResultAreaX myYCoordinate = myMICRXpressObject.CharacterResultAreaY myWidth = myMICRXpressObject.CharacterResultAreaWidth myHeight = myMICRXpressObject.CharacterResultAreaHeight numResults = myMICRXpressObject.CharacterResultNumberResults 'get text and confidence of the primary result myString = myMICRXpressObject.CharacterResultText 0 myConfidence = myMICRXpressObject.CharacterResultConfidence 0 'get text and confidence of secondary results If (numResults > 1) Then myString = myMICRXpressObject.CharacterResultText 1 myString = myMICRXpressObject.CharacterResultConfidence 1 End If ... | |
