Browse our Products

Aspose.OCR for C++ 23.6.0 - Release Notes

Deprecation warning

What was changed

KeySummaryCategory
OCRCPP‑464Fast recognition function has been aligned with the new API.Enhancement

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been introduced in this release:

asposeocr_fast_recognize function

Recognize provided images in the fastest mode that consumes minimum possible resources. This function is about twice as fast as regular recognition, but does not work with rotated images and does not support recognition settings.

It is a replacement for the following recognition functions:

FunctionDescription
page_fastQuickly read a single scan or photo without automatic text areas detection and skew angle correction.
page_fast_from_raw_bytesQuickly read the image provided as an array of pixels without automatic text areas detection and skew angle correction.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Deprecated APIs

The following public APIs have been marked as deprecated and will be removed in 24.1.0 (January 2024) release:

page_fast function

Replaced with an universal asposeocr_fast_recognize function.

page_fast_from_raw_bytes function

Replaced with an universal asposeocr_fast_recognize function.

Usage examples

The examples below illustrates the changes introduced in this release:

Fast recognition

// Provide the image
string file = current_dir + "/source.png";
AsposeOCRInput source;
source.url = file.c_str();
std::vector<AsposeOCRInput> content = { source };
// Extract text from the image
auto result = asposeocr_fast_recognize(content.data(), content.size());
// Output the recognized text
wchar_t* buffer = asposeocr_serialize_result(result, buffer_size, export_format::text);
std::wcout << std::wstring(buffer) << std::endl;