Aspose.OCR for Java 22.11.0 - Release Notes

What was changed

Key Summary Category
OCRJAVA-281 Added a new document areas detection mode that auto-straightens curved lines and finds text blocks inside the resulting image. New feature
n/a Improved XML extraction from JPEG images. Enhancement

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been introduced in this release:

DetectAreasMode.CURVED_TEXT

Added a new areas detection mode DetectAreasMode.CURVED_TEXT which uses a specialized neural network that automatically tracks and rectifies curved lines of text. This improves recognition accuracy and allows much more text to be recovered and extracted.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Usage examples

The examples below illustrates the changes introduced in this release:

DetectAreasMode.CURVED_TEXT

AsposeOCR api = new AsposeOCR();
DocumentRecognitionSettings recognitionSettings = new DocumentRecognitionSettings();
recognitionSettings.setDetectAreasMode(DetectAreasMode.CURVED_TEXT);
RecognitionResult results = api.RecognizePage("source.png", recognitionSettings);
System.out.println(results.recognitionText);