Return >  Addon.OCR.SetLanguage

Addon.OCR.SetLanguage()

Description

Sets the target language for OCR operations.

Syntax

.Addon.OCR.SetLanguage(OCRLanguage);

Parameters

<string> OCRLanguage: Specifies the target language for OCR operation.

OCRLanguage Corresponding Language OCRLanguage Corresponding Language
ara Arabic kor Korean
bul Bulgarian lav Latvian
cat Catalan lit Lithuanian
ces Czech nor Norwegian
chi_tra Chinese Traditional pol Polish
chi_sim Chinese Simplified por Portuguese
dan Danish que-classic Quechua
dan-frak Danish Fraktur ron Romanian
nld Dutch rus Russian
eng English srp Serbian
fin Finnish slv Slovenian
fra French slk Slovakian
deu German slk-frak Slovakian Fraktur
ell Greek spa Spanish
deu-frak German Fraktur swe Swedish
hin Hindi tgl Tagalog
hun Hungarian tha Thai
ind Indonesian tur Turkish
ita Italian ukr Ukranian
jpn Japanese vie Vietnamese

Remarks

The default value is "eng" which indicates English.
The string value indicates which TessData files to be used. The filenames in the TessData folder can also be examined to determine the language name. The format is [language name].traineddata.

Example

 DWObject.Addon.OCR.SetLanguage("ara");

See also

Addon.OCR.DownloadLangData