Class TableAIProcessor

Class TableAIProcessor

Namespace: Aspose.OCR.AI
Assembly: Aspose.OCR.dll (25.11.0)

AI post-processor that analyzes OCR results and extracts structured tables. Uses AI-based processing to improve table layout detection and formatting.

public class TableAIProcessor : IOcrAIPostProcessor

Inheritance

object TableAIProcessor

Implements

IOcrAIPostProcessor

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

TableAIProcessor(AITableDetectionMode)

Initializes a new instance of the Aspose.OCR.AI.TableAIProcessor class with the specified table detection mode.
The mode defines how tables are detected, structured, and processed from the recognized text.

public TableAIProcessor(AITableDetectionMode mode = AITableDetectionMode.NONE)

Parameters

mode AITableDetectionMode

The table detection mode to use.
Use Aspose.OCR.AI.AITableDetectionMode.NONE to process the entire image as one table without explicit detection,
or Aspose.OCR.AI.AITableDetectionMode.AUTO to automatically detect and structure tables.

Methods

GetResult()

Gets the processed OCR results after table detection and structuring.

public List<AIResult> GetResult()

Returns

List < AIResult >

A list of Aspose.OCR.AI.AIResult objects containing the extracted and formatted tables.

SaveMd(string)

Saves the extracted structured tables into a Markdown (.md) file.

public void SaveMd(string filename)

Parameters

filename string

The full path where the Markdown file will be saved.

SaveTxt(string)

Saves the extracted tables and processed text results into a TXT file.

public void SaveTxt(string filename)

Parameters

filename string

The full path where the TXT file will be saved.

SaveXlsx(string)

Saves the extracted structured tables into an XLSX (Excel) file.

public void SaveXlsx(string filename)

Parameters

filename string

The full path where the XLSX file will be saved.