Recognition languages

Contents
[ ]

Aspose.OCR for .NET can recognize a text in a large number of languages and all popular writing scripts, including texts with mixed languages.

To specify a language for recognition, provide one of the following values in Language property of recognition settings:

Value Language
Aspose.OCR.Language.None Extended Latin characters, including diacritics
Aspose.OCR.Language.Latin Extended Latin characters, including diacritics
Aspose.OCR.Language.Cyrillic Cyrillic characters
Aspose.OCR.Language.Bel Belorussian
Aspose.OCR.Language.Bul Bulgarian
Aspose.OCR.Language.Chi Chinese (more than 6,000 characters)
Aspose.OCR.Language.Cze Czech
Aspose.OCR.Language.Dan Danish
Aspose.OCR.Language.Deu German
Aspose.OCR.Language.Dum Dutch
Aspose.OCR.Language.Eng English
Aspose.OCR.Language.Est Estonian
Aspose.OCR.Language.Fin Finnish
Aspose.OCR.Language.Fra French
Aspose.OCR.Language.Hin Hindi
Aspose.OCR.Language.Ita Italian
Aspose.OCR.Language.Kaz Kazakh
Aspose.OCR.Language.Lav Latvian
Aspose.OCR.Language.Lit Lithuanian
Aspose.OCR.Language.Nor Norwegian
Aspose.OCR.Language.Pol Polish
Aspose.OCR.Language.Por Portuguese
Aspose.OCR.Language.Rum Romanian
Aspose.OCR.Language.Rus Russian
Aspose.OCR.Language.Slk Slovak
Aspose.OCR.Language.Slv Slovene
Aspose.OCR.Language.Spa Spanish
Aspose.OCR.Language.Srp Serbian
Aspose.OCR.Language.Srp_hrv Serbo-Croatian
Aspose.OCR.Language.Swe Swedish
Aspose.OCR.Language.Ukr Ukrainian

If this parameter is omitted, the OCR engine will assume that the text is written in extended Latin.

Example

The following code sample demonstrates how to specify the recognition language:

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add an image to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("source.png");
// Recognize Ukrainian text
Aspose.OCR.RecognitionSettings recognitionSettings = new Aspose.OCR.RecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Ukr;
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
	Console.WriteLine(result.RecognitionText);
}