Browse our Products

Aspose.OCR for Java 25.1.0 - Release Notes

What was changed

KeySummaryCategory
OCRJAVA‑409Optimized searchable PDFs to fully preserve the original image quality and maintain the file size.
Note: This improvement applies only when both the source and target files are in PDF format.
Enhancement
OCRJAVA‑408Removed deprecated APIs to improve code readability and performance.Enhancement
OCRJAVA‑408Changed the default language model to English (without diacritics) when no recognition language is explicitly specified.Enhancement

Public API changes and backwards compatibility

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

Added public APIs:

No changes.

Updated public APIs:

The following public APIs have been updated in this release:

Recognize()

If the Language property is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

If your project involves the recognition of languages with diacritics, such as French, German, or Spanish, ensure you specify the language explicitly in recognition setting or use the universal Language.ExtLatin model.

RecognizeIDCard()

If the Language property is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

If your project involves the recognition of languages with diacritics, such as French, German, or Spanish, ensure you specify the language explicitly in recognition setting or use the universal Language.ExtLatin model.

RecognizePassport()

If the Language property is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

If your project involves the recognition of languages with diacritics, such as French, German, or Spanish, ensure you specify the language explicitly in recognition setting or use the universal Language.ExtLatin model.

RecognizeCarPlate()

If the Language property is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

If your project involves the recognition of languages with diacritics, such as French, German, or Spanish, ensure you specify the language explicitly in recognition setting or use the universal Language.ExtLatin model.

RecognizeInvoice()

If the Language property is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

If your project involves the recognition of languages with diacritics, such as French, German, or Spanish, ensure you specify the language explicitly in recognition setting or use the universal Language.ExtLatin model.

RecognizeReceipt()

If the Language property is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

If your project involves the recognition of languages with diacritics, such as French, German, or Spanish, ensure you specify the language explicitly in recognition setting or use the universal Language.ExtLatin model.

Removed public APIs:

The following APIs deprecated during 2024 have been removed in this release:

RecognizeStreetPhoto()

Use the universal AsposeOcr.Recognize method which allows to control recognition settings, multiple languages, image regions, spellcheck, and other advanced features.

DetectAreasMode.NONE

Use DetectAreasMode.LEAN, which provides the same functionality.

DetectAreasMode.DOCUMENT

Use DetectAreasMode.MULTICOLUMN, which provides the same functionality.

DetectAreasMode.TEXT_IN_WILD

Use DetectAreasMode.UNIVERSAL, which detects all blocks of text in the image, including sparse and irregular text on street photos.

DetectAreasMode.COMBINE

Use DetectAreasMode.UNIVERSAL, which works best with sparse irregular text.

DetectAreasMode.PHOTO

Use DetectAreasMode.UNIVERSAL, which is optimal for all types of text except for multi-column layouts and tables.

Language.Cze

Use Language.Ces to recognize texts in Czech.

Language.Dum

Use Language.Nld to recognize texts in Dutch.

Language.Rum

Use Language.Ron to recognize texts in Romanian.

Language.Srp_hrv

Use Language.Hbs to recognize texts in Serbo-Croatian (Latin alphabet).

Language.Chi

Use Language.Chinese to recognize all Chinese languages, including mixed-language Chinese/English texts.

Language.None

Specify the recognition language directly. If the language is not specified, the OCR engine defaults to a lightweight Latin character model, which does not support diacritics.

SpellChecker.SpellCheckLanguage.Cze

Use SpellChecker.SpellCheckLanguage.Ces to check the spelling in Czech texts.

SpellChecker.SpellCheckLanguage.Dum

Use SpellChecker.SpellCheckLanguage.Nld to check the spelling in Dutch texts.

SpellChecker.SpellCheckLanguage.Rum

Use SpellChecker.SpellCheckLanguage.Ron to check the spelling in Romanian texts.