Browse our Products

Aspose.OCR for .NET 24.4.2 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRNET‑831Added Persian (Farsi) language recognition and recognition of texts in mixed Persian/English.New feature
OCRNET‑831Added Urdu language recognition and recognition of texts in mixed Persian/English.New feature
OCRNET‑831Added Uyghur language recognition and recognition of texts in mixed Persian/English.New feature
OCRNET‑831Improved Arabic text recognition.Enhancement

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for .NET 24.4.2 that may affect the code of existing applications.

Added public APIs:

No changes.

Updated public APIs:

The following public APIs have been introduced in this release:

Aspose.OCR.Language

Aspose.OCR for .NET can now recognize 3 new alphabets, including texts in mixed languages:

ValueAlphabet
Aspose.OCR.Language.PesPersian (Farsi) and English
Aspose.OCR.Language.UigUyghur and English
Aspose.OCR.Language.UrdUrdu and English

Removed public APIs:

No changes.

Examples

The code samples below illustrate the changes introduced in this release:

Recognize Persian text

// Initialize Aspose.OCR for .NET recognition API
Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add image
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("source.png");
// Set recognition language
Aspose.OCR.RecognitionSettings recognitionSettings = new Aspose.OCR.RecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Pes;
// Recognize image
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input, recognitionSettings);
Console.WriteLine(results[0].RecognitionText);