OCR Languages and Spell-checking

The LEADTOOLS C API OCR Toolkit supports languages and spell-checking through the following, separate components:

The Language Environment

The language environment defines the character set(s) recognized by the OCR engine. For example, if you enable the English and German languages, the German characters (ä, Ä, é, ö, Ö, ü, Ü, ß) will be combined with the English characters to define the set recognized by the engine.

To set the character sets to use in the engine, use the L_OcrLanguageManager_EnableLanguages method. To get the character sets supported by the engine, use the L_OcrLanguageManager_GetSupportedLanguages and L_OcrLanguageManager_IsLanguageSupported methods. You can enable as many character sets as required.

The language environment does not automatically perform spell-checking. To enable it you need to use the spell-checking sub-system.

Spell-Checking Sub System

The functionality of the checking subsystem consists of three separate components:

LEADTOOLS OCR supports spell-checking and correction through the use of external dictionaries. You can enable particular spell checker by calling L_OcrSpellCheckManager_SetSpellCheckEngine which is also used to turn off spell checking by passing L_OcrSpellCheckEngine_None for the second parameter of the above method.

When you set the IOcrSpellCheckManager.SpellCheckEngine property to a value other than None, the OCR engine will automatically try to load the spell checker requested and queries the language dictionaries found on your machine. You can change the spell-check engine at any time during the life of the L_OcrEngine, depending on your application needs. For example, you can disable spell-checking while recognizing certain types of documents only, and then re-enable it for other types.

To query the languages that support a dictionary, use L_OcrSpellCheckManager_GetSupportedLanguages.

Language Character Sets Supported by Engine

Language Dictionaries Supported by Engine

For more information, refer to L_OcrSpellCheckManager_SetSpellCheckEngine.

See Also

LEADTOOLS .NET OCR

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - LEAD Engine C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.