Table of Contents

Class RecognizedText<T>

Namespace
AiDotNet.ComputerVision.OCR
Assembly
AiDotNet.dll

Represents recognized text in an image region.

public class RecognizedText<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
RecognizedText<T>
Inherited Members

Constructors

RecognizedText(string, T)

Creates a new recognized text.

public RecognizedText(string text, T confidence)

Parameters

text string
confidence T

Properties

Box

Bounding box around the text.

public BoundingBox<T>? Box { get; set; }

Property Value

BoundingBox<T>

CharacterConfidences

Per-character confidences (if available).

public List<T> CharacterConfidences { get; set; }

Property Value

List<T>

Confidence

Overall confidence of the recognition.

public T Confidence { get; set; }

Property Value

T

Language

Language detected for this text.

public string? Language { get; set; }

Property Value

string

Polygon

Polygon points for rotated/curved text.

public List<(T X, T Y)> Polygon { get; set; }

Property Value

List<(T X, T Y)>

Text

The recognized text string.

public string Text { get; set; }

Property Value

string