Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.OCR for C++ is a commercially licensed product that can be used in trial (evaluation) mode.
You can start using Aspose.OCR for C++ right after the installation. In trial mode (without providing a license) you can recognize texts in any supported languages and save recognition results in any of the supported formats.
However, the following restrictions apply:
Apply a license to remove the restriction.
A temporary license removes a limitation of the trial version for 30 days. Use it to start building a fully functional OCR application and make the final decision to purchase Aspose.OCR for C++ later.
To request a temporary license, visit “Get a Temporary License” page.
Aspose.OCR for C++ is licensed either by the number of developers and locations (sites) where the products will be used (Developer and Site licenses) or by pay-per-use (Metered licenses).
Read License Types for details and purchase a license that best suits your needs.
After purchasing a license or obtaining a temporary license, you will receive a file with .lic extension. If needed, you can rename this file and change its extension.
The license must be applied once per application or process lifecycle before recognition starts. For desktop applications, it is recommended to load the license in the Initialize
function of the main form. For web applications, load it in the Session_Start()
function of global.asax file.
Put the license file to a folder on your computer and insert the following code in your startup function:
const std::string lic = "Aspose_OCR_License_File.lic";
aspose::ocr::set_license(lic.c_str());
If only the name of the license file (without path) is specified, set_license
function will look for the license file in the following locations:
Alternatively, you can store the license file in any folder on your computer and specify an absolute or relative path. If you prefer to load the license from the explicit path, provide the full path in set_license
function.
To validate whether the license is valid, use the following code:
std::wcout << aspose::ocr::get_state() << '\n';
This code will return true
if the license is set and valid and false
if there is a problem with the license.
Even if you have a single license for all Aspose products (such as Aspose.Total for C++), you still need to apply the license separately to each Aspose product you are using in your application.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.