The integrating application can retrieve timing and other statistical information about the last processed image. This may include the following:
- Time used to load the image in the Engine's memory space
- Time used for pre-processing the image, if any
- Time used for auto-zoning of the image, if any
- Time that the image spent in the different recognition modules during recognition, if any
- Recognition time measured until producing the recognition result
- Number of recognized characters on the image
- Number of recognized words on the image
- Number of rejected characters on the image
The application calls IG_REC_statistics_get() for this purpose. The fields of the AT_REC_STATISTIC 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_STATISTIC structure contains zero (0).
All timing data is measured in milliseconds.
Processing Statistics of an Image
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 |