Browse our Products
Aspose.OCR for C++ 23.4.0 - Release Notes
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OCR for C++ 23.4.0 (April 2023) release.
GPU version: 23.2.0
Deprecation warning
The release 23.3.0 introduced a slimmer, faster and more straightforward API. All of your existing code will continue to work and you can even make minor updates to it, but be aware that all deprecated elements are scheduled to be removed in release 24.1.0 (January 2024) in favor of the new API.
Time to deprecation: 8 months left.
What was changed
Key | Summary | Category |
---|---|---|
OCRCPP‑446 | Added a specialized recognition model for reading passports. | New feature |
OCRCPP‑448 | Added a specialized recognition model for reading vehicle license plates. | New feature |
Public API changes and backwards compatibility
This section lists all public API changes introduced in Aspose.OCR for C++ 23.4.0 that may affect the code of existing applications.
Added public APIs:
The following public APIs have been introduced in this release:
asposeocr_recognize_passport
function
This function extracts content from a scanned or photographed passport image.
asposeocr_recognize_vehicle_license_plate
function
This function extracts a vehicle identification number from a photographed license plate.
Updated public APIs:
No changes.
Removed public APIs:
No changes.
Usage examples
The examples below illustrates the changes introduced in this release:
Passport recognition
// Provide the passport image
string file = current_dir + "/john_doe.png";
AsposeOCRInput source;
source.url = file.c_str();
std::vector<AsposeOCRInput> content = { source };
// Set recognition language
RecognitionSettings settings;
settings.language_alphabet = language::eng;
// Extract text from the image
auto result = asposeocr_recognize_passport(content.data(), content.size(), settings);
// Output the recognized text
wchar_t* buffer = asposeocr_serialize_result(result, buffer_size, export_format::text);
std::wcout << std::wstring(buffer) << std::endl;
// Release the resources
asposeocr_free_result(result);
Vehicle registration plate recognition
// Provide the car license plate image
string file = current_dir + "/black_mercedes.png";
AsposeOCRInput source;
source.url = file.c_str();
std::vector<AsposeOCRInput> content = { source };
// Set recognition language
RecognitionSettings settings;
settings.language_alphabet = language::eng;
// Extract text from the image
auto result = asposeocr_recognize_vehicle_license_plate(content.data(), content.size(), settings);
// Output the recognized text
wchar_t* buffer = asposeocr_serialize_result(result, buffer_size, export_format::text);
std::wcout << std::wstring(buffer) << std::endl;
// Release the resources
asposeocr_free_result(result);