Browse our Products

Aspose.OCR for Java 23.1.1 - Release Notes

What was changed

KeySummaryCategory
OCRJAVA-304Logging support.New feature

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been introduced in this release:

Logging

You can output the recognition progress to the console or write it to a file. Logging parameters are configured through the static Logging class. You can specify the severity of the log by specifying one of the following values in the LoggingLevel property:

SeverityDescription
LoggingLevel.ErrorError events of considerable importance that will affect normal program execution.
LoggingLevel.WarningPotentially harmful situations that might still allow the application to continue running.
LoggingLevel.DebugDetailed trace messages useful for application developers.
LoggingLevel.NoneNo logging.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Usage examples

The examples below illustrates the changes introduced in this release:

Logging

Logging.loggingLevel = LoggingLevel.Debug;
Logging.fileSystem = true;
Logging.console = true;
Logging.logFilePath = "recognition.log";
Open file. Started. 11.01.2023 12:32:58
Open file. Ended. 11.01.2023 12:32:59
Read image data. Started. 11.01.2023 12:32:59
Read image data. Ended. 11.01.2023 12:32:59
Preprocess file. Started. 11.01.2023 12:32:59
Preprocess file. Ended. 11.01.2023 12:33:00
Recognition process. Started. 11.01.2023 12:33:01
Region detection. Started. 11.01.2023 12:33:01
Region detection. Ended. 11.01.2023 12:33:10
Recognize characters. Started. 11.01.2023 12:33:10
Recognize characters. Ended. 11.01.2023 12:33:11
Recognition process. Ended. 11.01.2023 12:33:11