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;} |
Managed Extensions for C++ | |
---|
public: __property char get_SpecialMissingSymbol();
public: __property void set_SpecialMissingSymbol(
char value
); |
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 = "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\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("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\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 = @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\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(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\ocr1.doc"); 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