Nicomsoft OCR: Developer's Guide


Img_OCR


Syntax

C++:int Img_OCR(HIMG ImgObj, int FirstStep, int LastStep, int Flags)
C#:int Img_OCR(int ImgObj, int FirstStep, int LastStep, int Flags)
Visual Basic:Function Img_OCR(ByVal ImgObj As Integer, ByVal FirstStep As Integer, ByVal LastStep As Integer, ByVal Flags As Integer) As Integer
Java:int Img_OCR(HIMG ImgObj, int FirstStep, int LastStep, int Flags)
Delphi: function Img_OCR(ImgObj:HIMG; FirstStep:integer; LastStep:integer; Flags:integer):integer


Description

Performs the selected OCR process steps for the specified Image object.


Parameters

ImgObj [IN] – the Image object.
FirstStep [IN] – the first step to execute. See the OCRSTEP_XXXXX constants for possible values.
LastStep [IN] – the last step to execute. See the OCRSTEP_XXXXX constants for possible values.
Flags [IN] – the operation mode. See the OCRFLAG_XXXXX constants for possible values.


Return value

Zero if success, otherwise an error code.


Remarks

The OCR process consists of several steps. You can execute them all at once, or execute them one by one and analyze the intermediate results. Most of the OCR steps can be executed several times with different settings, if necessary.


Example

See the sample code for the Engine_InitializeAdvanced or Svr_Create functions.