The integrating application can retrieve timing and other statistical information about the last processed image. This may include the following:
The application calls IG_REC_statistics_get() for this purpose. The fields of the AT_REC_STATISTICS structure will be filled with the relevant information on return.
The function can be called during any phase of the processing. The time for any process (from enumIGRecProcessId) that has not run contains zero (0). Similarly, if no recognition has been performed when the statistic function is called, each relevant field of the AT_REC_STATISTICS structure contains zero (0).
All timing data is measured in milliseconds.
C |
Copy Code
|
---|---|
AT_ERRCOUNT nErrCount; AT_INT nChar, nWord, nRej; AT_INT nPTime, nLTime, nRTime; HIGEAR hIGear; HIG_REC_IMAGE hImg; AT_REC_STATISTICS stat; nErrCount = IG_load_file("Image.tif", &hIGear ); nErrCount = IG_REC_image_import(hIGear, &hImg); nErrCount = IG_image_delete(hIGear); nErrCount = IG_REC_image_import(hIGear, &hImg); nErrCount = IG_REC_image_preprocess(hImg); // -> PreprocTime nErrCount = IG_REC_zones_locate(hImg, NULL); // -> DecompTime nErrCount = IG_REC_image_recognize(hImg); // -> ReadTime, RecognitionTime nErrCount = IG_REC_statistics_get(&stat); nChar = stat.CharCount; // Number of recognized characters nWord = stat.WordCount; // Number of recognized words nRej = stat.RejectedCharCount; // Number of rejected characters nPTime = stat.PreProcTime;// Image pre-processing time nLTime = stat.DecompTime; // Time necessary for auto-zoning of the image. nRTime = stat.ReadTime;// Full recognition time |