OcrLine class
Namespace: PdfNetStack.Ocr
Assembly: PdfNetStack.Ocr.dll
Package: PdfNetStack.Ocr
A line of text.
public sealed record OcrLine : IEquatable<OcrLine>Inheritance
Implements
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Confidence
Section titled “ Confidence”Mean character confidence, 0 to 1.
public double Confidence { get; init; }Property Value
Section titled “Property Value”Corners as the text stands: top left, top right, bottom right, bottom left.
public PdfPoint[] Quad { get; init; }Property Value
Section titled “Property Value”PdfPoint[]
RightToLeft
Section titled “ RightToLeft”True when the line reads right to left.
public bool RightToLeft { get; init; }Property Value
Section titled “Property Value”The text in logical order.
public string Text { get; init; }Property Value
Section titled “Property Value”The words, in logical order.
public IReadOnlyList<OcrWord> Words { get; init; }