Skip to content

OnnxOcrEngineOptions class

View as Markdown

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

Settings for OnnxOcrEngine.

public sealed class OnnxOcrEngineOptions

Inheritance

object ← OnnxOcrEngineOptions

Mean text probability a detected box needs.

public double BoxThreshold { get; init; }

double

Turn lines the orientation model reads as upside down. Needs its model file.

public bool CorrectUpsideDownLines { get; init; }

bool

Scripts to load recognizers for: latin, arabic. Each needs its model file.

public IReadOnlyList<string> Languages { get; init; }

IReadOnlyList<string>

Longest side the detector sees; larger images are scaled down for detection only.

public int MaxDetectionSide { get; init; }

int

Threads each model may use; 0 lets ONNX Runtime decide.

public int ThreadsPerModel { get; init; }

int

Check each model file against its pinned SHA-256 before loading it.

public bool VerifyModels { get; init; }

bool