Class DocumentRegion<T>
Represents a detected document region.
public class DocumentRegion<T>
Type Parameters
TThe 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
Index
Gets the region index.
public int Index { get; init; }
Property Value
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
RegionType
Gets the type of document region.
public DocumentRegionType RegionType { get; init; }