ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_approx_regex_maximum_error_count_set
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Approx Regex Functions > IG_REC_approx_regex_maximum_error_count_set

Glossary Item Box

Assigns the maximum error count.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_maximum_error_count_set(
   const HIG_REC_APPROX_REGEX higRecApproxRegex,
   const AT_INT count
);

Arguments:

higRecApproxRegex The handle to an approximate regex instance.
count The new maximum number of Errors allowed for a fuzzy search match.

Return Value:

The number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Establishes the maximum number of errors allowed for a fuzzy search match. Each Insert, Delete, or Substitute applied contributes to the total error count for a match. A match is only reported if the total error count does not exceed this threshold.

The default value is 1.

Example:

  Copy Code
AT_ERRCOUNT errCount = 0 ;
HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ;

IG_REC_approx_regex_create( &higRecApproxRegex ) ;
errCount = IG_REC_approx_regex_maximum_error_count_set 
                          ( higRecApproxRegex, 
                            2 
                          ) ;
IG_REC_approx_regex_delete( higRecApproxRegex ) ; 

See Also

HIG_REC_APPROX_REGEX

©2012. Accusoft Corporation. All Rights Reserved.