Nicomsoft OCR: Developer's Guide


Cfg_Create


Syntax

C++:int Cfg_Create(HCFG* CfgObj)
C#:int Cfg_Create(out int CfgObj)
Visual Basic:Function Cfg_Create(ByRef CfgObj As Integer) As Integer
Java:int Cfg_Create(HCFG CfgObj)
Delphi:function Cfg_Create(out CfgObj:HCFG):integer


Description

Creates a new Config object. Before using any OCR-related functions, you must create the Config object and then call the Cfg_LoadOptions function to load the options that will be used during the OCR process. The purpose of the Config object is to store and manage options for the OCR process.


Parameters

CfgObj [OUT] – the variable that will get the new Config object identifier.


Return value

Zero if success, otherwise an error code.


Remarks

1. For more details, see the OCR Objects section.
2. To reduce the code size, use the Engine_InitializeAdvanced function instead of Engine_Initialize.


Example

See the sample code for the Engine_Initialize function.