Gets the last recognition status.
Syntax
Example
Visual Basic | Copy Code |
---|
Public Sub RecognitionStatisticExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Dim status As RasterDocumentRecognitionStatistic = New Leadtools.Document.RasterDocumentRecognitionStatistic()
status = rasterDocument.RecognitionStatistic
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void RecognitionStatisticExample() { // Note that this is a sample key, which will not work in your toolkit RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; rasterDocument.Startup(); RasterDocumentRecognitionStatistic status = new RasterDocumentRecognitionStatistic(); status = rasterDocument.RecognitionStatistic; MessageBox.Show ("Recognized Characters = " + status.RecognizedCharacterCount + "\n" + "Recognized Words = " + status.RecognizedWordCount + "\n" + "Rejected Characters = " + status.RejectCharacterCount + "\n" + "Rejected Words = " + status.RejectWordCount + "\n" + "Recognized Time = " + status.RecognizedTime + "\n" + "Reading Time = " + status.ReadingTime + "\n" + "Pre Process time = " + status.PreprocessTime + "\n" + "Decomposition = " + status.DecompositionTime); rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also