Table of Contents

Class PageSegmentationResult<T>

Namespace
AiDotNet.Document
Assembly
AiDotNet.dll

Represents the result of page segmentation.

public class PageSegmentationResult<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
PageSegmentationResult<T>
Inherited Members

Remarks

For Beginners: Page segmentation divides a document page into different types of regions (paragraphs, figures, tables, etc.). This result contains all detected regions with their types and locations.

Properties

ClassProbabilities

Gets the class probabilities for each pixel (shape: [height, width, num_classes]).

public Tensor<T>? ClassProbabilities { get; init; }

Property Value

Tensor<T>

ProcessingTimeMs

Gets the processing time in milliseconds.

public double ProcessingTimeMs { get; init; }

Property Value

double

ReadingOrder

Gets the reading order of text regions (indices into Regions list).

public IReadOnlyList<int> ReadingOrder { get; init; }

Property Value

IReadOnlyList<int>

RegionCount

Gets the total number of detected regions.

public int RegionCount { get; }

Property Value

int

Regions

Gets the detected document regions.

public IReadOnlyList<DocumentRegion<T>> Regions { get; init; }

Property Value

IReadOnlyList<DocumentRegion<T>>

SegmentationMask

Gets the pixel-level segmentation mask (class index per pixel).

public Tensor<T>? SegmentationMask { get; init; }

Property Value

Tensor<T>