Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.OCR for Python via C++ can automatically fetch the necessary resources as needed when you call the method that depends on them. This mode is turned off by default. Check Important considerations before deciding to enable this mode.
root_load_path
property of asposeocr.LoadSettings
object.lazy_load
property of asposeocr.LoadSettings
object to true
.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 = "path/to/dir/with/resources"
load_settings.lazy_load = true
asposeocr.set_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.