Table of Contents

Class OcrResultElement

Namespace
NAPS2.Ocr
Assembly
NAPS2.Sdk.dll

A element in the result of an OCR request that represents a text segment.

public record OcrResultElement : IEquatable<OcrResultElement>
Inheritance
OcrResultElement
Implements

Constructors

OcrResultElement(string, string, bool, (int x, int y, int w, int h), int, int, ImmutableList<OcrResultElement>)

A element in the result of an OCR request that represents a text segment.

public OcrResultElement(string Text, string LanguageCode, bool RightToLeft, (int x, int y, int w, int h) Bounds, int Baseline, int FontSize, ImmutableList<OcrResultElement> Children)

Parameters

Text string
LanguageCode string
RightToLeft bool
Bounds (int x, int y, int w, int h)
Baseline int
FontSize int
Children ImmutableList<OcrResultElement>

Properties

Baseline

public int Baseline { get; init; }

Property Value

int

Bounds

public (int x, int y, int w, int h) Bounds { get; init; }

Property Value

(int x, int y, int w, int h)

Children

public ImmutableList<OcrResultElement> Children { get; init; }

Property Value

ImmutableList<OcrResultElement>

FontSize

public int FontSize { get; init; }

Property Value

int

LanguageCode

public string LanguageCode { get; init; }

Property Value

string

RightToLeft

public bool RightToLeft { get; init; }

Property Value

bool

Text

public string Text { get; init; }

Property Value

string