Interface IOcrAIPostProcessor
Namespace: Aspose.OCR.AI
Assembly: Aspose.OCR.dll (25.8.0)
Interface for applying AI-based postprocessing to OCR recognition results.
public interface IOcrAIPostProcessor
Methods
Process(OcrOutput, AITableDetectionMode, Rectangle)
Processes OCR results using this AI post-processor, optionally detecting tables in a specified mode or region.
void Process(OcrOutput results, AITableDetectionMode mode = AITableDetectionMode.NONE, Rectangle customRectangle = null)
Parameters
results
OcrOutput
The structured OCR output to process.
mode
AITableDetectionMode
Table detection mode to apply. Default is Aspose.OCR.AI.AITableDetectionMode.NONE.
customRectangle
Rectangle
Optional region to limit processing to a specific area of the image.
Process(List<string>)
Processes a list of text results using this AI post-processor.
void Process(List<string> results)
Parameters
The list of text strings to process.
SetAI(AsposeAI)
Injects an instance of the AsposeAI class that provides access to AI functionality. This allows for decoupling the processor from a specific AI implementation.
void SetAI(AsposeAI asposeAI)
Parameters
asposeAI
AsposeAI
An instance of the AI provider.
SetDefaultModel(AsposeAIModelConfig)
Sets the default AI model configuration to use for this processor.
void SetDefaultModel(AsposeAIModelConfig customSettings)
Parameters
customSettings
AsposeAIModelConfig
The custom model configuration to load and apply. </string>