Resources

Resources class

Manage downloadable resources that enhance Aspose.OCR recognition capabilities.

public class Resources

Constructors

NameDescription
Resources()The default constructor.

Methods

NameDescription
static AllowAutomaticDownloads(bool)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.
static FetchAll()Download all compatible resources from the online repository. The existing resource files will be overwritten.
static FetchResource(string)Download the resource specified in the name parameter from the online repository. If the resource is already downloaded, it will be overwritten. You can omit the .OCR extension and use file name only.
static FetchResources(string[])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.
static GetLocalPath()Return the full path to the directory where the resources will be downloaded.
static GetRepository()Return the URL of the online repository from which Aspose.OCR resources are downloaded.
static ListLocal()List all Aspose.OCR resources stored in the local directory.
static ListRemote()List all compatible resources from the online repository.
static ReleaseMemory()Unload OCR modules to free up memory. The downloaded module files will remain intact.
static RemoveLocal(string)Removes the locally stored Aspose.OCR resource.
static SetLocalPath(string)Specify an absolute or relative path to the directory where the resources will be downloaded. If the directory does not exist, it will be created automatically. By default, the resources are downloaded to aspose_data directory in the application’s working directory.
static SetLocalPath(string, bool)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.
static SetRepository(string)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/.

See Also