Scanner ActiveX Control

OCRSetRect

 

Set the specific zone for recognizing.

Public Function OCRSetRect( _
   ByVal iLeft As Integer, _
   ByVal iTop As Integer, _
   ByVal iWidth As Integer, _
   ByVal iHeight As Integer
)

 

Parameter

iLeft
   Specifies the logical left-coordinate of the starting point of the rectangle.

iTop
   Specifies the logical top-coordinate of the starting point of the rectangle.

iWidth
   the width of rectangle.

iHeight
   the height of rectangle.

No Return Value
   
Example

   

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

'after OCRRecognized event fired
Scanner1.OCRSaveRecognizedText "c:\testoutput.txt"