ImageGear Professional DLL v17.1 for Windows Accusoft
Attaching the Recognition Component to Core ImageGear
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > User Guide > Using ImageGear > Optical Character Recognition > Working with the ImageGear Recognition Component > Attaching the Recognition Component to Core ImageGear

Glossary Item Box

The ImageGear Recognition Component must be attached to the Core component and initialized before using it.

Use the following call to attach the Recognition component:

 

C Copy Code
AT_ERRCODE errCode;
errCode = IG_comm_comp_attach("REC");

If the component has been attached, the function returns IGE_SUCCESS.

To check whether the Recognition component has been already attached, call IG_comm_comp_check("REC"); if the function returns TRUE then the Recognition component has been attached.

Initializing the Recognition Session

After the Recognition component has been attached, the recognition session must be initialized with the function IG_REC_initialize(). The function returns 0 if the session has been initialized successfully. Otherwise, the return value is a number of errors encountered during the initialization.

Recognition component requires additional resource files to be available. See description of IG_REC_initialize() for information on where these files should be located such that the component can access them.

Closing the Recognition Session

Function IG_REC_close() closes the recognition session if it is no longer necessary. After closing the session, any calls to the recognition functions are not allowed (except IG_REC_initialize()). To start a new recognition session call IG_REC_initialize() again.

©2012. Accusoft Corporation. All Rights Reserved.