AsposeAI
Contents
[
Hide
]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.
public class AsposeAI : IDisposable
Constructors
Name | Description |
---|---|
AsposeAI() | Initializes a new instance of the AsposeAI class with default settings. Automatic model downloads are enabled. |
AsposeAI(ILogger) | Initializes a new instance of the AsposeAI class with a custom logger. Automatic model downloads are enabled. |
Methods
Name | Description |
---|---|
Dispose() | Disposes internal resources used by the AsposeAI instance. |
FreeResources() | Releases all AI-related resources and disposes loaded models. |
GetLocalPath() | Gets the currently configured local model directory path. |
IsInitialized() | Checks whether the AI engine has been initialized. |
ListLocal() | Lists all local models available in the configured directory. |
RunPostprocessor(List<string>) | Applies registered AI postprocessor to a list of recognized text strings. |
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(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
- assembly Aspose.OCR