VerifyText Method
Syntax
NIOCR.VerifyText Image, ExpectedText, [VerificationScores], [Regions]
Return Type
Purpose
Verifies the accuracy of the text in the image. For each character, the function checks for the existence of a reference character for the expected character class and compares the character from the image to the reference character.
Remarks
The method attempts to verify any characters found in the region of the image specified by Regions. If the number of characters the method attempts to verify does not match the number of characters found in ExpectedText, the method returns an error.
Parameters
Image as CWIMAQImage
Source image for this operation.
ExpectedText as Variant
Either a string containing the expected character values or an array of strings containing the expected character values and character patterns.
VerificationScores as Variant
On return, an array of verification scores for the elements of expected text.
Regions as Variant
CWIMAQRegions object that specifies the region of the image on which the method performs this operation. To use the entire image for this operation, do not supply this parameter. If the object contains more than one region, the method interprets each region as a character or pattern location in the image. If the object contains only one region, the method searches the region for text.