public bool IsSpellCheckEngineSupported(OcrSpellCheckEngine spellCheckEngine)
- (BOOL)isSpellCheckEngineSupported:(LTOcrSpellCheckEngine)spellCheckEngine public boolean isSpellCheckEngineSupported(OcrSpellCheckEngine spellCheckEngine) bool IsSpellCheckEngineSupported(OcrSpellCheckEngine spellCheckEngine)
def IsSpellCheckEngineSupported(self,spellCheckEngine):
spellCheckEngine
Spell checker type to query.
true if spellCheckEngine is supported by this OCR engine, otherwise; false.
To get and set the current spell checker, use SpellCheckEngine and to query the list of spell checkers supported by this OCR engine, use GetSupportedSpellCheckEngines.
using Leadtools;using Leadtools.Codecs;using Leadtools.Forms.Common;using Leadtools.Ocr;using Leadtools.Drawing;public void OcrSpellCheckManagerExample(){// Create an instance of the engineusing (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD)){// Start the engine using default parametersocrEngine.Startup(null, null, null, LEAD_VARS.OcrLEADRuntimeDir);IOcrSpellCheckManager spellCheckManager = ocrEngine.SpellCheckManager;// Get the spell language supported (languages with a dictionary)string[] spellLanguages = spellCheckManager.GetSupportedSpellLanguages();foreach (string spellLanguage in spellLanguages)Console.WriteLine(spellLanguage);// Check if English is supportedstring language = "en";if (spellCheckManager.IsSpellLanguageSupported(language)){// Yes, set itspellCheckManager.SpellLanguage = language;Console.WriteLine("Current spell language: {0}", spellCheckManager.SpellLanguage);}// Enable the spell checking systemspellCheckManager.SpellCheckEngine = OcrSpellCheckEngine.Native;// Now perform other OCR functions here// Shutdown the engine// Note: calling Dispose will also automatically shutdown the engine if it has been startedocrEngine.Shutdown();}}static class LEAD_VARS{public const string OcrLEADRuntimeDir = @"C:\LEADTOOLS22\Bin\Common\OcrLEADRuntime";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
