DocumentRegion<T>

Models & Types · AiDotNet.Document

Represents a detected document region.

Constructors

Constructor Summary
DocumentRegion()

Properties

Property Summary
DocumentRegionType RegionType { get; set; } Gets the type of document region.
IReadOnlyList<Vector<T>> PolygonPoints { get; set; } Gets the polygon points for non-rectangular regions.
T Confidence { get; set; } Gets the detection confidence score (0-1).
Tensor<T> InstanceMask { get; set; } Gets the instance segmentation mask for this region (if available).
Vector<T> BoundingBox { get; set; } Gets the bounding box as [x1, y1, x2, y2].
double ConfidenceValue { get; set; } Gets the confidence as a double value.
int Index { get; set; } Gets the region index.
int ReadingOrderPosition { get; set; } Gets the reading order position (lower = earlier in reading order).