GetRecognitionVariants Method of the Word Object

This method returns a collection of variants of a word recognition. The method returns zero for non-printable characters (spaces, carriage returns, etc.) and characters that were not recognized but added to the text during explicit editing. Zero is also returned if the text was recognized by one of the previous ABBYY FineReader Engine versions. If the IRecognizerParams::SaveWordRecognitionVariants property is set to FALSE the return collection contains one element; otherwise, the collection contains no less than one element and the variants are ordered from the best to the worst.

Important! The character coordinates are not stored for each word recognition variant. If you need the character coordinates for the first recognition variant, which was chosen as the recognition result, obtain the CharParams object from the Paragraph object.

Syntax

C++

HRESULT GetRecognitionVariants(
  IWordRecognitionVariants** Result
);
    

C#

IWordRecognitionVariants GetRecognitionVariants();
    

Visual Basic .NET

Function GetRecognitionVariants() As IWordRecognitionVariants
    

Parameters

Result
[out, retval] A pointer to IWordRecognitionVariants* pointer variable that receives the interface pointer to the WordRecognitionVariants output object.

Return values

This function has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

Word

24.03.2023 8:51:52

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.