Developers can combine several Engines in their recognition solutions. When multiple Engines generate different recognition variants for a character or word, the developer can select the best variant by voting between the variants. To enable voting, the ABBYY FineReader Engine has a special Voting API that provides access to different hypotheses of character or word recognition with corresponding weight values. In addition to voting, the developer can use the Voting API to check recognition results using his own databases and algorithms and to correct text. For example, the developer can build words from letters or check all generated hypotheses. The WordRecognitionVariants object represents a collection of hypotheses for a word, and the CharacterRecognitionVariants object represents a collection of hypotheses for a character. The elements of these collections are the WordRecognitionVariant and CharacterRecognitionVariant objects, respectively. The WordRecognitionVariant object represents a single hypothesis for a word and contains the text of the hypothesis, type of model, the average width of a stroke, and information on whether the hypothesis has been found in the dictionary. The GetCharParams method of this object provides access to the parameters of a single character. The CharacterRecognitionVariant object represents a single hypothesis for a character and contains character confidence, the probability that a character is written with a serif font, and information on whether the character is superscript or subscript.Documentation Index
Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
Use this file to discover all available pages before exploring further.
How to retrieve recognition variants for a word or character
If you wish to find out all recognition hypotheses for a word or character, do the following:- Set the SaveWordRecognitionVariants and SaveCharacterRecognitionVariants properties of the RecognizerParams object to TRUE. This will instruct FineReader Engine to save recognition variants in the recognition results.
- Pass the RecognizerParams object as a subobject of the PageProcessingParams object (or the DocumentProcessingParams object which contains it) to one of the ABBYY FineReader Engine recognition methods.
- The collection of hypotheses is accessible after recognition through the ICharParams::WordRecognitionVariants, ICharParams::CharacterRecognitionVariants properties and the IParagraph::GetWordRecognitionVariants method.
These methods return zero for non-printable characters (spaces, carriage returns, etc.) and characters that were not recognized but added to the text during editing. Zero is also returned if the text was recognized by one of the previous ABBYY FineReader Engine versions. The hypotheses collections contain recognition variants ranked from best to worst. If the SaveWordRecognitionVariants or SaveCharacterRecognitionVariants property of the RecognizerParams object is set to FALSE, the corresponding collection will contain only one element.
Windows Samples
C++ (COM) code
C++ (COM) code
C# code
C# code
