TextInstance<T>
Structs · AiDotNet.ComputerVision.OCR.EndToEnd
A spotted text instance: where it is, how confident, and what it says.
Inheritance: ValueType → TextInstance<T>
Implements: IEquatable<TextInstance<T>>
Constructors
| Constructor | Summary |
|---|---|
TextInstance(double Score, IReadOnlyList<ValueTuple<double, double>> ControlPoints, IReadOnlyList<int> CharacterIndices) |
A spotted text instance: where it is, how confident, and what it says. |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<ValueTuple<double, double>> ControlPoints { get; set; } |
The 8 control points in IMAGE pixel coordinates — four along the top edge then four along the bottom. |
IReadOnlyList<int> CharacterIndices { get; set; } |
CTC-decoded character class indices, blanks and repeats already collapsed. |
double Score { get; set; } |
Text confidence at the detecting feature-map position. |
Methods
| Method | Summary |
|---|---|
bool Equals(TextInstance<T> other) |
|
bool Equals(object obj) |
|
bool op_Equality(TextInstance<T> left, TextInstance<T> right) |
|
bool op_Inequality(TextInstance<T> left, TextInstance<T> right) |
|
int GetHashCode() |
|
string ToString() |
|
void Deconstruct(double Score, IReadOnlyList<ValueTuple<double, double>> ControlPoints, IReadOnlyList<int> CharacterIndices) |