Table of Contents

Class DocumentRegion<T>

Namespace
AiDotNet.Document
Assembly
AiDotNet.dll

Represents a detected document region.

public class DocumentRegion<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
DocumentRegion<T>
Inherited Members

Properties

BoundingBox

Gets the bounding box as [x1, y1, x2, y2].

public Vector<T> BoundingBox { get; init; }

Property Value

Vector<T>

Confidence

Gets the detection confidence score (0-1).

public T Confidence { get; init; }

Property Value

T

ConfidenceValue

Gets the confidence as a double value.

public double ConfidenceValue { get; init; }

Property Value

double

Index

Gets the region index.

public int Index { get; init; }

Property Value

int

InstanceMask

Gets the instance segmentation mask for this region (if available).

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

Property Value

Tensor<T>

PolygonPoints

Gets the polygon points for non-rectangular regions.

public IReadOnlyList<Vector<T>>? PolygonPoints { get; init; }

Property Value

IReadOnlyList<Vector<T>>

ReadingOrderPosition

Gets the reading order position (lower = earlier in reading order).

public int ReadingOrderPosition { get; init; }

Property Value

int

RegionType

Gets the type of document region.

public DocumentRegionType RegionType { get; init; }

Property Value

DocumentRegionType