ImageGear for C and C++ on Windows v19.1 - Updated
IG_REC_statistics_get
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Utility Functions > IG_REC_statistics_get

Returns information about the accuracy and timing data of the last processed image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_statistics_get(
   LPAT_REC_STATISTICS pStat
);

Arguments:

Name Type Description
pStat LPAT_REC_STATISTICS Address of a structure to hold the statistical information.

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;
AT_REC_STATISTICS rStatistics;
HIGEAR higImage = 0;
HIG_REC_IMAGE higRecImage = 0;

memset(&rStatistics, 0, sizeof(AT_REC_STATISTICS));
ErrCount += IG_load_file("Image.tif", &higImage); 
ErrCount += IG_REC_image_import(higImage, &higRecImage);
ErrCount += IG_REC_zones_locate(higRecImage, NULL);
ErrCount += IG_REC_image_recognize(higRecImage);

//...

ErrCount += IG_REC_statistics_get(&rStatistics);

//...

ErrCount += IG_REC_image_delete(higRecImage);
ErrCount += IG_image_delete(higImage);