Scanner ActiveX Control

OCRGetRecognizedCharConfidence

 

Returns the confidence of one of the characters recognized during the last OCR process done by the OCRStartScan() method.

Public Function OCRGetRecognizedCharConfidence( _
   ByVal iCharIndex As Integer
) as Integer

 

Parameter

iCharIndex
   the index of characters. The first index is 1.


Return Value
    The value of Confidence. The value  between 0 and 255. 0=perfect, 255=reject.


Example

   

Visual Basic Syntax
Scanner1.OCRRecognizeMode=0
Scanner1.OCRStartScan(0, "dictfiles")

'after OCRRecognized event fired
iConfidence= Scanner1.OCRGetRecognizedCharConfidence 1