Recognition word confidences

If you are using the FineReader or RecoStar recognition engines for full-page text recognition, word confidences are also recorded for each word found on a document.

Even though both of these recognition engines record individual word confidences, it is not possible to compare the confidences between the two recognition engines. This is because recognition confidences are defined by the recognition engines, each using different criteria. For example, a word read by FineReader that has a 50% recognition confidence may be more or less confident than the same word read by RecoStar recognition engine also with 50% confidence.

The CscXDocWord object has a confidence property called Confidence and it is of type double.

A value of 0.0 means that a word has a 0% recognition confidence. A value of 1.0 means that a word has a 100% recognition confidence.

Note For all recognitions other than FineReader and RecoStar, the default word value will always be 0.0.

The following example shows how to use this new property in a script:

‘ Example code. Access is possible at any time after recognition is performed

Private Sub Document_AfterProcess(ByVal pXDoc As CASCADELib.CscXDocument)
   Dim word As CscXDocWord
   Set word = pXDoc.Representations(0).Pages(0).Words(0)
   MsgBox word.Text & " Confidence: " & word.Confidence
End Sub