Table of Contents

Class OcrTextRegion

Namespace
VisioForge.Core.Types.VideoProcessing
Assembly
VisioForge.Core.dll

A single recognized text region produced by the OCR block: the recognized string, its confidence, and the detection geometry (an axis-aligned bounding box plus the original 4-point quadrilateral).

public class OcrTextRegion

Inheritance

Inherited Members

Remarks

Coordinates are in the source frame's pixel space. The VisioForge.Core.Types.VideoProcessing.OcrTextRegion.Polygon follows the detector's vertex order (top-left, top-right, bottom-right, bottom-left) and may be rotated for slanted text, while VisioForge.Core.Types.VideoProcessing.OcrTextRegion.BoundingBox is the axis-aligned rectangle that encloses it.

Properties

BoundingBox

Gets or sets the axis-aligned bounding box enclosing the text region, in source-frame pixels.

public Rect BoundingBox { get; set; }

Property Value

Rect

Confidence

Gets or sets the average recognition confidence in the 0..1 range.

public float Confidence { get; set; }

Property Value

float

Polygon

Gets or sets the detection quadrilateral vertices, in source-frame pixels.

public OcrPoint[] Polygon { get; set; }

Property Value

OcrPoint[]

Text

Gets or sets the recognized text.

public string Text { get; set; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.