Table of Contents

Class OCRBlock<T>

Namespace
AiDotNet.Document
Assembly
AiDotNet.dll

Represents a block (paragraph or region) of recognized text.

public class OCRBlock<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
OCRBlock<T>
Inherited Members

Properties

AverageConfidence

Gets the average confidence for text in this block.

public T AverageConfidence { get; init; }

Property Value

T

BlockType

Gets the detected block type (text, table, figure, etc.).

public LayoutElementType BlockType { get; init; }

Property Value

LayoutElementType

BoundingBox

Gets the bounding box as [x1, y1, x2, y2].

public Vector<T> BoundingBox { get; init; }

Property Value

Vector<T>

Lines

Gets the lines in this block.

public IReadOnlyList<OCRLine<T>> Lines { get; init; }

Property Value

IReadOnlyList<OCRLine<T>>

Text

Gets the full text of the block.

public string Text { get; init; }

Property Value

string