Class TextRegion<T>
Represents a detected text region in an image.
public class TextRegion<T>
Type Parameters
TThe numeric type used for calculations.
- Inheritance
-
TextRegion<T>
- Inherited Members
Properties
BoundingBox
Gets the bounding box as [x1, y1, x2, y2] for axis-aligned rectangles.
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
CroppedImage
Gets the cropped image of this text region (if available).
public Tensor<T>? CroppedImage { get; init; }
Property Value
- Tensor<T>
Index
Gets the region index.
public int Index { get; init; }
Property Value
PolygonPoints
Gets the polygon points for rotated/curved text (list of [x, y] coordinates).
public IReadOnlyList<Vector<T>>? PolygonPoints { get; init; }
Property Value
- IReadOnlyList<Vector<T>>
RotationAngle
Gets the rotation angle in degrees (if detected).
public double? RotationAngle { get; init; }