Aspose.OCR for Python via Java API docs
|
Manage downloadable resources that enhance Aspose.OCR recognition capabilities. More...
Static Public Member Functions | |
__init__ () | |
allow_automatic_downloads (bool allow) | |
Allow (true) or block (false) automatic downloading of required resources from the online repository. | |
fetch_all () | |
Download all compatible resources from the online repository. | |
fetch_resources ([] names) | |
Download the resources specified in the names parameter from the online repository. | |
get_local_path () | |
Return the full path to the directory where the resources will be downloaded. | |
get_repository () | |
Return the URL of the online repository from which Aspose.OCR resources are downloaded. | |
[str] | list_local () |
List all Aspose.OCR resources stored in the local directory. | |
[str] | list_remote () |
List all compatible resources from the online repository. | |
set_local_path (str path, bool create=True) | |
Specify an absolute or relative path to the directory where the resources will be downloaded. | |
set_repository (str url) | |
Specify the URL of the online repository from which Aspose.OCR resources will be downloaded. | |
Manage downloadable resources that enhance Aspose.OCR recognition capabilities.
|
static |
|
static |
Allow (true) or block (false) automatic downloading of required resources from the online repository.
By default, a resource is automatically downloaded when a method that depends on it is called.
allow | Boolean value to allow or block automatic downloading of required resources. |
|
static |
Download all compatible resources from the online repository.
The existing resource files will be overwritten.
|
static |
Download the resources specified in the names
parameter from the online repository.
If one or more resources are already downloaded, they will be overwritten. You can omit the .OCR extension and use file names only.
names | Array with resources names. See the ListRemote method. |
|
static |
Return the full path to the directory where the resources will be downloaded.
|
static |
Return the URL of the online repository from which Aspose.OCR resources are downloaded.
|
static |
List all Aspose.OCR resources stored in the local directory.
|
static |
List all compatible resources from the online repository.
|
static |
Specify an absolute or relative path to the directory where the resources will be downloaded.
Pass false
to the create
parameter to prevent the directory from being created automatically. If the provided directory does not exist and creation is not allowed, the resources will be loaded into the aspose_data directory in the application's working directory.
path | Absolute or relative path to the directory. |
create | Parameter to prevent the directory from being created automatically. |
|
static |
Specify the URL of the online repository from which Aspose.OCR resources will be downloaded.
By default, the resources are downloaded from https://github.com/aspose-ocr/resources/.
url | URL of the online repository. |