OCR reread
When a document is classified locally for a class, you can define OCR settings per field. The reread setting of a simple or a table field is configured in its properties window and you can define a minimum confidence to accept the new OCR results as the new field result.
If an OCR reread profile is assigned to a field, it is read again by that profile after already being read by the generic page recognition profile. Typically, reread profiles are more specific because the user knows something about the field content. For example, in the page profile, you define characters and digits that area allowed. If a field is extracted that is supposed to contain amounts, it may be helpful to reread that field with a purely numeric OCR profile.
This reread is firing an event to allow an evaluation via script.
FieldName_AfterFieldReread(ByVal pXDoc As CASCADELib.CscXDocument, ByVal pField As CASCADELib.CscXDocField, ByRef pNewText As String, ByVal Conf As Double, ByRef pbReplaceText As Boolean)
The pNewText parameter is the result of the reread that can be changed by script. Conf is reflecting the confidence of the OCR. The pbReplaceText flag controls if the modified text is set to the field result. This happens when the given confidence is higher than the confidence in the field properties. The value for this flag is initially set to TRUE which means that the values are accepted as defined by the field reread properties.
You can also define Reread profiles for all cells in a table column. The principle is the same, only the event name and parameters differ.
TableField_AfterCellReread(ByVal pXDoc As CASCADELib.CscXDocument, ByVal pCell As CASCADELib.CscXDocTableCell, ByRef pNewText As String, ByVal Conf As Double, ByRef pbReplaceText As Boolean)
