ImageGear for C and C++ on Windows v19.9 - Updated
IG_REC_tradeoff_set
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Settings Functions > IG_REC_tradeoff_set

Specifies the tradeoff setting of the recognition engine that will be applied during auto-zoning and recognition.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_tradeoff_set(
   enumIGRecRMTradeoff Tradeoff
);

Arguments:

Name Type Description
Tradeoff enumIGRecRMTradeoff Trade-off setting to be set.

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;
enumIGRecRMTradeoff eTradeoff = IG_REC_TO_FAST;
ErrCount += IG_REC_tradeoff_set(eTradeoff);

Remarks:

This setting applies to all the relevant recognition modules.

  1. Currently the trade-off setting is effective for the following recognition modules:
    • IG_REC_RM_OMNIFONT_MOR: omnifont multi-lingual module
    • IG_REC_RM_OMNIFONT_MTX: omnifont module
  2. This setting does not influence the behavior of any other enumIGRecRecognitionModule recognition module. Not all of the above modules interpret the settings in the same way.
  3. If this function is not called, the default value IG_REC_TO_ACCURATE is applied.