Nicomsoft OCR: Developer's Guide


Ocr_Create


Syntax

C++:int Ocr_Create(HCFG CfgObj, HOCR* OcrObj)
C#:int Ocr_Create(int CfgObj, out int OcrObj)
Visual Basic:Function Ocr_Create(ByVal CfgObj As Integer, ByRef OcrObj As Integer) As Integer
Java:int Ocr_Create(HCFG CfgObj, HOCR OcrObj)
Delphi:function Ocr_Create(CfgObj:HCFG; out OcrObj:HOCR):integer


Description

Creates a new OCR object. The OCR object will manage all resources that are necessary for OCR.


Parameters

CfgObj [IN] – the Config object that will be used for getting the OCR options.
OcrObj [OUT] – the variable that will get the identifier of the new OCR object.


Return value

Zero if success, otherwise an error code.


Remarks

For more details, see the OCR Objects section.


Example

See the sample code for the Engine_Initialize function.