The integrating application can retrieve timing and other statistical information about the last accessed image. This includes the following:
- Time used to load the image in the recognition engine's memory space
- Time used for pre-processing the image, if any
- Time used for auto-zoning of the image, 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 accesses the ImGearRecPage.Statistics Property for this purpose. The properties of the ImGearRecStatistics Class object will return the relevant information.
The statistics properties can be called during any phase of the processing. The time for any processes (from ImGearRecProcess Enumeration) that have not run will contain zero (0). Similarly, if no recognition has been performed when the statistics properties are accessed, these properties will return zero (0).
All timing data is measured in milliseconds. |
Processing Statistics of an Image
C# | Copy Code |
---|---|
int nChar, nWord, nRej; int nSTime, nPTime, nLTime, nRTime; ImGearRecStatistics igRecStatistics = igRecPage.Statistics; nChar = igRecStatistics.CharCount;// Number of recognized characters nWord = igRecStatistics.WordCount;// Number of recognized words nRej = igRecStatistics.RejectedCharCount; // Number of rejected characters nSTime = igRecStatistics.ReadTime;// Image reading time nPTime = igRecStatistics.PreProcTime; // Image pre-processing time nLTime = igRecStatistics.DecompTime; // Decomposition/auto-zoning time nRTime = igRecStatistics.RecognitionTime; // Recognition time // . . . |
VB .NET | Copy Code |
---|---|
Dim nChar As Integer, nWord As Integer, nRej As Integer Dim nSTime As Integer, nPTime As Integer, nLTime As Integer, nRTime As Integer Dim igRecStatistics As ImGearRecStatistics = igRecPage.Statistics nChar = igRecStatistics.CharCount ' Number of recognized characters nWord = igRecStatistics.WordCount ' Number of recognized words nRej = igRecStatistics.RejectedCharCount ' Number of rejected characters nSTime = igRecStatistics.ReadTime ' Image reading time nPTime = igRecStatistics.PreProcTime ' Image pre-processing time nLTime = igRecStatistics.DecompTime ' Decomposition/auto-zoning time nRTime = igRecStatistics.RecognitionTime ' Recognition time ' . . . |