## AsposeAI class

Main API for the AI component in the Aspose OCR library. Provides integration with AI-powered postprocessors such as spell-checking, table extraction, and layout correction.

```csharp
public class AsposeAI : IDisposable
```

## Constructors

| Name | Description |
| --- | --- |
| [AsposeAI](asposeai#constructor)() | Initializes a new instance of the AsposeAI class with default settings. Automatic model downloads are disabled by default. |
| [AsposeAI](asposeai#constructor_1)(ILogger) | Initializes a new instance of the AsposeAI class with a custom logger. Automatic model downloads are disabled by default. |

## Methods

| Name | Description |
| --- | --- |
| [Dispose](../../aspose.ocr.ai/asposeai/dispose)() | Disposes internal resources used by the AsposeAI instance. |
| [FreeResources](../../aspose.ocr.ai/asposeai/freeresources)() | Releases all AI-related resources and disposes loaded models. |
| [GetLocalPath](../../aspose.ocr.ai/asposeai/getlocalpath)() | Gets the currently configured local model directory path. |
| [IsInitialized](../../aspose.ocr.ai/asposeai/isinitialized)() | Checks whether the AI engine has been initialized. |
| [ListLocal](../../aspose.ocr.ai/asposeai/listlocal)() | Lists all local models available in the configured directory. |
| [RunPostprocessor](../../aspose.ocr.ai/asposeai/runpostprocessor#runpostprocessor_1)(List&lt;string&gt;) | Applies registered AI postprocessor to a list of recognized text strings. |
| [RunPostprocessor](../../aspose.ocr.ai/asposeai/runpostprocessor#runpostprocessor)(OcrOutput) | Applies registered AI post-processor to the given structured OCR result. This may include spelling correction, table detection, table formatting, and other AI-powered enhancements depending on the configured processors. |
| [SetPostProcessor](../../aspose.ocr.ai/asposeai/setpostprocessor)(IOcrAIPostProcessor, AsposeAIModelConfig) | Adds an AI postprocessor to be applied to OCR results. If *customSettings* is provided, the specified or default AI model will be loaded and configured automatically before applying the postprocessor. |

### Remarks

⚠️ **Disclaimer:** By using AI-powered features, you are solely responsible for ensuring compliance with any applicable laws, licensing terms, third-party AI model usage policies, and data privacy regulations. Aspose does not take responsibility for the accuracy, licensing, or reliability of external AI models.

### See Also

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

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