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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also