ImageGear for C and C++ on Windows v19.6 - Updated
IG_REC_settings_save
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Settings Management Functions > IG_REC_settings_save

Saves all the current settings of the recognition engine to a recognition engine Settings file for storing or studying purposes.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_settings_save(
   LPCSTR pFileName
);

Arguments:

Name Type Description
pFileName LPCSTR Name of the settings file into which to write.

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_settings_save("settings.cfg");

//...

ErrCount = IG_REC_settings_load("settings.cfg");

Remarks:

Only settings that are not in the default state are saved.

A recognition engine Settings file can be loaded any time with the IG_REC_settings_load function.

Though the recognition engine Settings file is an ASCII text file, DO NOT MODIFY IT, since once it becomes corrupted it will not be loaded at all, and there is no way to learn which line has caused the problem.