Working with Recognized Words
Once the characters on a page have been recognized, those characters can be combined into recognized words by calling the GetRecognizedWords method. To change the contents of the recognized words, change the set of recognized characters by calling the SetRecognizedCharacters method. To save the updated recognized characters to a file, call the SaveDocument method. To save the results into memory, call the SaveResultsToMemory method.
The GetRecognizedWords method updates the following properties:
The RecognizedWordsCount property is updated with the number of words recognized on the page specified in the iPageIndex parameter of the GetRecognizedWords method. This is also the number of words updated in the RecognizedWord property. The value in the RecognizedWordsCount property also determines the valid index values for the RecognizedWordXXX properties.
Since the index for each of the RecognizedWordXXX properties is zero-based, possible values for the index parameters are from 0 to RecognizedWordsCount property– 1. The information in each RecognizedWordXXX property, at the same index, pertains to the word at that index in the RecognizedWord property. For example, if the RecognizedWordsCount property is updated with 4, there are four words in the RecognizedWord property. Valid values for the index parameter of each of the RecognizedWordXXX properties are from 0 – 3. For the word at RecognizedWords(0), the zone in which that word was found in RecognizedWordZone(0). The location, height and width of the word can be found in the RecognizedWordLeft(0), RecognizedWordTop(0), RecognizedWordHeight(0) and RecognizedWordWidth(0) properties.