The character used to replace missing characters in the last recognition process or save results process.
Syntax
Visual Basic (Declaration) | |
---|
Public Property SpecialMissingSymbol As Char |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As RasterDocumentEngine
Dim value As Char
instance.SpecialMissingSymbol = value
value = instance.SpecialMissingSymbol
|
C# | |
---|
public char SpecialMissingSymbol {get; set;} |
C++/CLI | |
---|
public:
property char SpecialMissingSymbol {
char get();
void set (char value);
} |
Return Value
The character used to replace missing characters in the last recognition process or save results process.
Example
Visual Basic | Copy Code |
---|
Public Sub SpecialMissingSymbolPropertyExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
rasterDocument.RecognitionDataFileName = LeadtoolsExamples.Common.ImagesPath.Path + "test.rdf"
rasterDocument.SpellLanguageId = RasterDocumentLanguage.English
rasterDocument.Recognize(0, 1, Nothing)
If rasterDocument.SpecialMissingSymbol = "^"c Then
rasterDocument.SpecialMissingSymbol = "^"c
End If
If rasterDocument.SpecialRejectedCharacter = "!"c Then
rasterDocument.SpecialRejectedCharacter = "!"c
End If
rasterDocument.SaveResultsToFile(LeadtoolsExamples.Common.ImagesPath.Path + "ocr1.doc")
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void SpecialMissingSymbolPropertyExample() { // Note that this is a sample key, which will not work in your toolkit RasterSupport.Unlock(RasterSupportType.Ocr, "TestKey"); RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; rasterDocument.Startup(); // assume page is added, refer to AddPage example for more information rasterDocument.RecognitionDataFileName = LeadtoolsExamples.Common.ImagesPath.Path + "test.rdf"; rasterDocument.SpellLanguageId = RasterDocumentLanguage.English; rasterDocument.Recognize(0, 1, null); if (rasterDocument.SpecialMissingSymbol == '^') rasterDocument.SpecialMissingSymbol = '^'; if (rasterDocument.SpecialRejectedCharacter == '!') rasterDocument.SpecialRejectedCharacter = '!'; // ... // ... save recognition results using SaveDocument // ... rasterDocument.SaveResultsToFile(LeadtoolsExamples.Common.ImagesPath.Path + "ocr1.doc"); rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also