AsposeAI

AsposeAI class

Main API for AI component from Aspose OCR library

public class AsposeAI : IDisposable

Constructors

NameDescription
AsposeAI()Initializes a new instance of the AsposeAI class with default settings. Automatic model downloads are enabled.
AsposeAI(AsposeAIModelConfig)Initializes a new instance of the AsposeAI class with the specified model configuration.
AsposeAI(ILogger)Initializes a new instance of the AsposeAI class with a custom logger. Automatic model downloads are enabled.
AsposeAI(AsposeAIModelConfig, ILogger)Initializes a new instance of the AsposeAI class with the specified model configuration and logger.
AsposeAI(bool, ILogger, AsposeLLMApiConfig, AsposeLLMModelConfig, AsposeLLMChatSessionConfig)Initializes a new instance of the AsposeAI class with full customization options.

Methods

NameDescription
AddPostProcessor(IOcrAIPostProcessor)Adds an AI postprocessor to be applied to OCR results.
CorrectResult(OcrOutput)Applies AI spell-check correction to the full OCR output.
CorrectResult(RecognitionResult)Applies AI spell-check correction to a single recognition result (e.g., one image or page).
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 all registered AI postprocessors to a list of recognized text strings.
RunPostprocessor(OcrOutput)Applies all registered AI postprocessors to a structured OCR result.

See Also