OnnxOcrEngineOptions class
Namespace: PdfNetStack.Ocr
Assembly: PdfNetStack.Ocr.dll
Package: PdfNetStack.Ocr
Settings for OnnxOcrEngine.
public sealed class OnnxOcrEngineOptionsInheritance
Properties
Section titled “Properties”BoxThreshold
Section titled “ BoxThreshold”Mean text probability a detected box needs.
public double BoxThreshold { get; init; }Property Value
Section titled “Property Value”CorrectUpsideDownLines
Section titled “ CorrectUpsideDownLines”Turn lines the orientation model reads as upside down. Needs its model file.
public bool CorrectUpsideDownLines { get; init; }Property Value
Section titled “Property Value”Languages
Section titled “ Languages”Scripts to load recognizers for: latin, arabic. Each needs its model file.
public IReadOnlyList<string> Languages { get; init; }Property Value
Section titled “Property Value”MaxDetectionSide
Section titled “ MaxDetectionSide”Longest side the detector sees; larger images are scaled down for detection only.
public int MaxDetectionSide { get; init; }Property Value
Section titled “Property Value”ThreadsPerModel
Section titled “ ThreadsPerModel”Threads each model may use; 0 lets ONNX Runtime decide.
public int ThreadsPerModel { get; init; }Property Value
Section titled “Property Value”VerifyModels
Section titled “ VerifyModels”Check each model file against its pinned SHA-256 before loading it.
public bool VerifyModels { get; init; }