Browse our Products

Aspose.OCR for Java 24.4.1 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRJAVA‑369Added Persian (Farsi) language recognition and recognition of texts in mixed Persian/English.New feature
OCRJAVA‑369Added Urdu language recognition and recognition of texts in mixed Persian/English.New feature
OCRJAVA‑369Added Uyghur language recognition and recognition of texts in mixed Persian/English.New feature
OCRJAVA‑369Improved Arabic text recognition.Enhancement
OCRJAVA‑370Improved 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:

ValueAlphabet
Language.PesPersian (Farsi) and English
Language.UigUyghur and English
Language.UrdUrdu 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);