Managing downloadable resources
Contents
[
Hide
]
To add OCR modules to your project:
- Download the required resources from the Aspose.OCR resource repository to some directory on your computer.
- Specify the path to that directory in
resource_root_path
property ofAsposeOCRResourceLoadSettings
structure. - Apply the resource load settings (
AsposeOCRResourceLoadSettings
structure) usingasposeocr_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();
asposeocr_set_resource_load_settings(load_settings);
Do not forget to include a directory with downloaded resources in your distributive, otherwise the related functionality will fail.