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
root_load_path
property ofasposeocr.LoadSettings
object. - Apply the resource loading settings using
asposeocr.set_load_settings()
method before calling any other Aspose.OCR for Python via C++ method.
import asposeocr
load_settings = asposeocr.LoadSettings()
load_settings.root_load_path = "extra/resources"
asposeocr.set_load_settings(load_settings)
Do not forget to include a directory with downloaded resources when moving the project between different systems, otherwise the related functionality will fail.