ImageGear for C and C++ on Windows v19.10 - Updated
IG_REC_close
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Initialization and Cleanup Functions > IG_REC_close

Shuts down the Recognition component. You should call this function before exiting your application.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_close(
   AT_VOID 
);

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
ErrCount += IG_REC_initialize();

//...

ErrCount += IG_REC_close();

Remarks:

All objects that require Recognition API calls for their deletion, such as HIG_REC_IMAGE, HIG_REC_DOCUMENT, settings collections, AT_REC_LETTER arrays, wide string arrays, etc. must be deleted before the call to IG_REC_close. After IG_REC_close has been called, no Recognition API calls are allowed, except IG_REC_initialize, which initializes the component again.