TextRegion<T>

Models & Types · AiDotNet.Document

Represents a detected text region in an image.

Constructors

Constructor Summary
TextRegion()

Properties

Property Summary
IReadOnlyList<Vector<T>> PolygonPoints { get; set; } Gets the polygon points for rotated/curved text (list of [x, y] coordinates).
T Confidence { get; set; } Gets the detection confidence score (0-1).
Tensor<T> CroppedImage { get; set; } Gets the cropped image of this text region (if available).
Vector<T> BoundingBox { get; set; } Gets the bounding box as [x1, y1, x2, y2] for axis-aligned rectangles.
double ConfidenceValue { get; set; } Gets the confidence as a double value.
double? RotationAngle { get; set; } Gets the rotation angle in degrees (if detected).
int Index { get; set; } Gets the region index.