GetRecognizedCharacter Method of the RecognizedWordInfo Object

This method provides access to a recognition variant and parameters of a character at a given position in the word. Using this method you can view the main recognition variant of the character (which is used in the resulting text) and all other variants.

Note: The API working with recognition variants is not available for recognizing handprinted texts.

Syntax

Visual Basic .NET

Sub GetRecognizedCharacter( _
  index As Integer, _
  variantIndex As Integer, _
  result As RecognizedCharacterInfo _
)
    

C++

HRESULT GetRecognizedCharacter(
   int                       index,
   int                       variantIndex,
   IRecognizedCharacterInfo* result
);
    

Parameters

index
[in] Specifies the index of the character in the word. It must be in range from 0 to the length of the word (length of the IRecognizedWordInfo::Text string) minus 1.
variantIndex
[in] Specifies the index of the recognition variant of the character in the internal collection of character recognition variants. The number of variants in the collection can be obtained using the IRecognizedCharacterInfo::RecognitionVariantsCount property of any variant of the character recognition. Recognition variants are ranked from the best to the worst. The value of the parameter can be -1, which means that the main recognition variant should be returned.
result
[in] Refers to the RecognizedCharacterInfo object. This object properties are initialized with values corresponding to parameters of the character variant. A valid object should be passed as this parameter.

Return values

This function has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

RecognizedWordInfo

8/15/2023 1:19:30 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.