Browse our Products

Aspose.OCR for Python via .NET 26.4 - Release Notes

What was changed

KeySummaryCategory
OCRNET‑108Started table-detection model integration: model selection, ONNX conversion, Python via .NET validation, and preprocessing setup. Added detect_tables API for table region detection.New feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR for Python via .NET 26.4 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been introduced in this release:

aspose.ocr.AsposeOcr.detect_tables - a new method

Detects table regions in input images and returns a list of RectangleOutput objects.

New Methods

MethodDescription
detect_tables(images)Detects tables and returns list[RectangleOutput].

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Examples

The code samples below illustrate the changes introduced in this release:

Detect table regions

import os
from aspose.ocr import *
from aspose.ocr.models import *

lic = License()
lic.set_license(self.licPath)

# // Initialize an instance of AsposeOcr
api = AsposeOcr()

# // Detect table regions
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("table.jpg")

results = api.detect_tables(input)

for result in results:
    for rect in result.rectangles:
        print(rect)