TextRegion<T>

Models & Types · AiDotNet.ComputerVision.Detection.TextDetection

Represents a detected text region in an image.

Constructors

Constructor Summary
TextRegion(BoundingBox<T> box, T confidence) Creates a new text region.

Properties

Property Summary
BoundingBox<T> Box { get; set; } Bounding box around the text region.
List<ValueTuple<T, T>> Polygon { get; set; } Polygon points defining the exact boundary (for rotated or curved text).
T Confidence { get; set; } Confidence score of the detection.
TextRegionType RegionType { get; set; } Whether this region is likely a word vs a text line.
double RotationAngle { get; set; } Rotation angle of the text region in degrees (if applicable).

Methods

Method Summary
TextRegion<T> FromPolygon(List<ValueTuple<T, T>> polygon, T confidence) Creates a text region from polygon points.