Table of Contents

Property Underlines

Namespace
LMKit.Extraction.Ocr
Assembly
LM-Kit.NET.dll

Underlines

Gets or sets the underlines the engine found under the page's text lines and lifted before recognizing them, in the frame of TextElements. Empty when the page carries none or the engine does not report them.

[JsonPropertyName("Underlines")]
public IReadOnlyList<OcrUnderline> Underlines { get; set; }

Property Value

IReadOnlyList<OcrUnderline>

Examples

foreach (OcrUnderline underline in result.Underlines)
{
    Console.WriteLine($"Underline at y={underline.Bounds.MidY:F0}, {underline.Thickness:F1} thick");
}

Remarks

Each underline names the text line it sits under and the span of TextElements it runs under, so the words it marks can be styled without measuring the page again.

Share