Browse our Products
Aspose.OCR for .NET 24.4.2 - Release Notes
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OCR for .NET 24.4.2 (April 2024) release.
GPU version: 23.10.1
Deprecation warning
The release 24.3.0 updates the codes of some recognition languages to align with ISO 639-2 standard.
To make it easier to upgrade your code, we have kept all legacy values, but marked them as deprecated. All of your existing code will continue to work and you can even make minor updates to it, but be aware that all deprecated language codes are scheduled to be removed in release 25.1.0 (January 2025).
Time to deprecation: 9 months left.
What was changed
Key | Summary | Category |
---|---|---|
OCRNET‑831 | Added Persian (Farsi) language recognition and recognition of texts in mixed Persian/English. | New feature |
OCRNET‑831 | Added Urdu language recognition and recognition of texts in mixed Persian/English. | New feature |
OCRNET‑831 | Added Uyghur language recognition and recognition of texts in mixed Persian/English. | New feature |
OCRNET‑831 | Improved 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:
Value | Alphabet |
---|---|
Aspose.OCR.Language.Pes | Persian (Farsi) and English |
Aspose.OCR.Language.Uig | Uyghur and English |
Aspose.OCR.Language.Urd | Urdu 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);