Scanner ActiveX Control

OCRGetRecognizedCharSpaces

 

Return the number of spaces detected before a character recognized during the last OCR process done by the OCRStartScan() method.

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

 

Parameter

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


Return Value
    The number of spaces detected before a character recognized.

Example

   

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

'after OCRRecognized event fired
itoppos= Scanner1.OCRGetRecognizedCharSpaces 1