## Resources class

Manage downloadable resources that enhance Aspose.OCR recognition capabilities.

```csharp
public class Resources
```

## Constructors

| Name | Description |
| --- | --- |
| [Resources](resources)() | The default constructor. |

## Methods

| Name | Description |
| --- | --- |
| static [AllowAutomaticDownloads](../../aspose.ocr/resources/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](../../aspose.ocr/resources/fetchall)() | Download all compatible resources from the online repository. The existing resource files will be overwritten. |
| static [FetchResource](../../aspose.ocr/resources/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](../../aspose.ocr/resources/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](../../aspose.ocr/resources/getlocalpath)() | Return the full path to the directory where the resources will be downloaded. |
| static [GetRepository](../../aspose.ocr/resources/getrepository)() | Return the URL of the online repository from which Aspose.OCR resources are downloaded. |
| static [ListLocal](../../aspose.ocr/resources/listlocal)() | List all Aspose.OCR resources stored in the local directory. |
| static [ListRemote](../../aspose.ocr/resources/listremote)() | List all compatible resources from the online repository. |
| static [ReleaseMemory](../../aspose.ocr/resources/releasememory)() | Unload OCR modules to free up memory. The downloaded module files will remain intact. |
| static [RemoveLocal](../../aspose.ocr/resources/removelocal)(string) | Removes the locally stored Aspose.OCR resource. |
| static [SetLocalPath](../../aspose.ocr/resources/setlocalpath#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](../../aspose.ocr/resources/setlocalpath#setlocalpath_1)(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](../../aspose.ocr/resources/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

* namespace [Aspose.OCR](../../aspose.ocr)
* assembly [Aspose.OCR](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.OCR.dll -->
