## AsposeAI.SetPostProcessor method

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.

```csharp
public void SetPostProcessor(IOcrAIPostProcessor processor, 
    AsposeAIModelConfig customSettings = null)
```

| Parameter | Type | Description |
| --- | --- | --- |
| processor | IOcrAIPostProcessor | An implementation of [`IOcrAIPostProcessor`](../../iocraipostprocessor) that defines the logic for AI-based post-processing (e.g., spell-checking, table extraction, or layout correction). |
| customSettings | AsposeAIModelConfig | The custom AI model configuration to use. If provided, the model specified in [`AsposeAIModelConfig`](../../asposeaimodelconfig) will be automatically loaded and applied. |

### See Also

* interface [IOcrAIPostProcessor](../../iocraipostprocessor)
* class [AsposeAIModelConfig](../../asposeaimodelconfig)
* class [AsposeAI](../../asposeai)
* namespace [Aspose.OCR.AI](../../asposeai)
* assembly [Aspose.OCR](../../../)

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