Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.OCR for C++ can automatically fetch the necessary resources as needed when you call the method that depends on them. This mode is enabled by default.
resource_root_path
property of AsposeOCRResourceLoadSettings
structure.lazy_load
property of AsposeOCRResourceLoadSettings
structure to true
.AsposeOCRResourceLoadSettings
structure) using asposeocr_set_resource_load_settings()
method before calling any other Aspose.OCR method.AsposeOCRResourceLoadSettings load_settings;
std::string root_path = "path/to/files";
load_settings.resource_root_path = root_path.c_str();
load_settings.lazy_load = true;
asposeocr_set_resource_load_settings(load_settings);
You also have a flexibility to combine online and offline modes. For example, provide the most used resources with your app and allow the app to automatically download rarely used resources in the runtime.
If you choose to automatically download resources on demand, consider the following:
If the above-mentioned constraints are not feasible, consider using manual resource management.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.