Skip to content

OcrLine class

View as Markdown

Namespace: PdfNetStack.Ocr
Assembly: PdfNetStack.Ocr.dll
Package: PdfNetStack.Ocr

A line of text.

public sealed record OcrLine : IEquatable<OcrLine>

Inheritance

object ← OcrLine

Implements

IEquatable<OcrLine>

OcrLine(string, PdfPoint[], double, IReadOnlyList<OcrWord>, bool)

Section titled “ OcrLine(string, PdfPoint[], double, IReadOnlyList<OcrWord>, bool)”

A line of text.

public OcrLine(string Text, PdfPoint[] Quad, double Confidence, IReadOnlyList<OcrWord> Words, bool RightToLeft)

Text string

The text in logical order.

Quad PdfPoint[]

Corners as the text stands: top left, top right, bottom right, bottom left.

Confidence double

Mean character confidence, 0 to 1.

Words IReadOnlyList<OcrWord>

The words, in logical order.

RightToLeft bool

True when the line reads right to left.

Mean character confidence, 0 to 1.

public double Confidence { get; init; }

double

Corners as the text stands: top left, top right, bottom right, bottom left.

public PdfPoint[] Quad { get; init; }

PdfPoint[]

True when the line reads right to left.

public bool RightToLeft { get; init; }

bool

The text in logical order.

public string Text { get; init; }

string

The words, in logical order.

public IReadOnlyList<OcrWord> Words { get; init; }

IReadOnlyList<OcrWord>