ImageGear for C and C++ on Windows v19.6 - Updated
IG_REC_document_page_statistics_get
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Formatted Output Functions > IG_REC_document_page_statistics_get

Gets recognition statistics of the page inside the document.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_document_page_statistics_get(
   HIG_REC_DOCUMENT hDocument,
   AT_INT nPageIndex,
   LPAT_REC_STATISTICS lpStatistics
);

Arguments:

Name Type Description
hDocument HIG_REC_DOCUMENT Document handle.
nPageIndex AT_INT Zero-based index of the page to be examined.
lpStatistics LPAT_REC_STATISTICS Pointer to AT_REC_STATISTICS variable to receive page statistics.

Return Value:

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

Supported Raster Image Formats:

See IG_REC_image_import.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
HIG_REC_DOCUMENT hRecDocument = 0;
AT_REC_STATISTICS Statistics;

memset(&Statistics, 0, sizeof(Statistics));
ErrCount += IG_REC_document_open("recognition_data.bin", &hRecDocument);
ErrCount += IG_REC_document_page_statistics_get(hRecDocument, 0, &Statistics); 

//...

ErrCount += IG_REC_document_close(hRecDocument);

See Also

HIG_REC_DOCUMENT