Working with Languages

The OCR engine supports many different languages for recognizing text. For a language to be used in the recognition process it must be set as active.

LEADTOOLS OCR Module - OmniPage Engine

The OCR engine supports many different languages for recognizing text. To get a list of the currently installed languages into your OCR engine directory, call L_Doc2GetSupportedLanguages. To get each language ID friendly name, call L_Doc2GetLanguageFriendlyName. For a language to be used in the recognition process it must be set as active. To activate the languages that will be used in the next recognition process, call L_Doc2SelectLanguages / L_Doc2SelectLanguagesExt. In addition, special character options can also be set for characters in the active languages using L_Doc2SetCharLangsOptions / L_Doc2SetCharLangsOptionsExt. For more information on these character options, refer to the CHAROPTIONS2 structure. To determine what languages have been activated for the OCR engine, call L_Doc2GetSelectedLanguages / L_Doc2GetSelectedLanguagesExt. To determine which special character options have been set use L_Doc2GetCharLangsOptions / L_Doc2GetCharLangsOptionsExt.

L_Doc2GetDefaultSpellLanguages gets the default languages used for checking spelling. All available spelling languages available to the OCR engine are default and are used for checking spelling.

When the active languages are no longer needed, free the pointer to the selected languages by calling L_Doc2FreeLanguages.

When the list of the enumerated supported languages retrieved by calling L_Doc2GetSupportedLanguages is no longer needed, free the pointer to the supported languages by calling L_Doc2FreeLanguages.

For more information, refer to:

Languages and Dictionaries

Working with Dictionaries

DOC2_LANGIDS

Punctuation and Miscellaneous Characters

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

LEADTOOLS OCR Module - OmniPage Engine C API Help