How to verify recognized data
-
Call the StartVerification method of the Batch object or StartVerification method of the Project object to run the verification process.
You cannot run two verification sessions in one process simultaneously.
-
Before starting the verification, you can set the verification options using the Options property of the VerificationSession object:
- specify if context verification should be performed (the VerifyFields property)
- specify which symbols should be verified during group verification (the VerifyBaseSymbols and VerifyExtraSymbols properties), or disable group verification (set both these properties to FALSE)
-
specify which symbols should be excluded from the verification process
Verification options can be set only before starting the verification (before the first IVerificationSession::NextWorkSet method call). After beginning the verification, all these settings become read-only.
- When the verification parameters are set, call the NextWorkSet method of the VerificationSession object to receive a part of the data that need verification (a work set). Each verification session contains one or several work sets. Documents are combined into work sets depending on the available resources. Work sets enable several verifiers to process one big batch.
-
For each work set:
- A work set consists of several groups of objects to verify. To receive the next group, call the NextGroup method of the VerificationWorkSet object.
- For each group:
- A verification group consists of several verification objects. It can include objects which are to be verified in one group during group verification, or objects which have the same meaning (e.g. the “Name” fields from all the verified documents). Go through the verification group, using the Count property and Item method of the VerificationGroup object.
- A verification object can be submitted for group or context verification. This is determined by the type of the object. For each object:
- Check the type of the object using the Type property of the VerificationObject object.
- If this is a context verification object, use the AsContextVerificationObject method to obtain the ContextVerificationObject object. The ContextVerificationObject object provides access to the field containing an error and the rules applied to this field.
- If this is a group verification object, use the AsGroupVerificationObject method to obtain the GroupVerificationObject object. The GroupVerificationObject object provides access to the character submitted for group verification and its image.
- When you finish verification of the data in the current work set, you must call the Commit method of the VerificationWorkSet object to save the changes.
- After you have finished verification, call the Close method of the VerificationSession object to close the verification session. An open verification session uses more resources than a closed one. So if you have finished verification and need to free some resources, call this method to close the verification session.

C++ (COM) code
C++ (COM) code
