Browse our Products
Aspose.OCR for Java 24.4.1 - Release Notes
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OCR for Java 24.4.1 (April 2024) release.
GPU version: 24.2.0
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: 8 months left.
What was changed
Key | Summary | Category |
---|---|---|
OCRJAVA‑369 | Added Persian (Farsi) language recognition and recognition of texts in mixed Persian/English. | New feature |
OCRJAVA‑369 | Added Urdu language recognition and recognition of texts in mixed Persian/English. | New feature |
OCRJAVA‑369 | Added Uyghur language recognition and recognition of texts in mixed Persian/English. | New feature |
OCRJAVA‑369 | Improved Arabic text recognition. | Enhancement |
OCRJAVA‑370 | Improved DetectAreasMode.PHOTO document areas detection mode. | Enhancement |
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for Java 24.4.1 that may affect the code of existing applications.
Added public APIs:
No changes
Updated public APIs:
The following public APIs have been changed in Aspose.OCR for Java 24.4.1 release:
Language
enumeration
Aspose.OCR for Java can now recognize 3 new alphabets, including texts in mixed languages:
Value | Alphabet |
---|---|
Language.Pes | Persian (Farsi) and English |
Language.Uig | Uyghur and English |
Language.Urd | Urdu and English |
Removed public APIs:
No changes.
Examples
The code samples below illustrate the changes introduced in this release:
Persian text recognition
// Initialize Aspose.OCR recognition API
AsposeOCR api = new AsposeOCR();
// Add image to the recognition batch
OcrInput source = new OcrInput(InputType.SingleImage);
source.add("image.png");
// Specify recognition language
RecognitionSettings recognitionSettings = new RecognitionSettings();
recognitionSettings.setLanguage(Language.Pes);
// Extract text from image
ArrayList<RecognitionResult> results = api.Recognize(source, recognitionSettings);
System.out.println(result[0].recognition_text);