PPTextDetSettings
Settings for PPTextDet. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.
using Nutrient;The SDK creates this class through factory methods or other SDK objects.
Properties
BoxThreshold
public float BoxThreshold { get; set; }Threshold for box confidence
Type: float
LimitSideLength
public int LimitSideLength { get; set; }Limit value for resizing, PaddleOCR runtime uses limit_side_len=64, limit_type=‘min’ for better quality
Type: int
LimitType
public string LimitType { get; set; }‘max’ to limit longest side, ‘min’ to limit shortest side
Type: string
MaxCandidates
public int MaxCandidates { get; set; }Maximum number of text boxes to detect
Type: int
ModelPath
public string ModelPath { get; set; }Path to the ONNX model file (model.onnx).
Type: string
Threshold
public float Threshold { get; set; }Binarization threshold for probability map
Type: float
UnclipRatio
public float UnclipRatio { get; set; }Ratio for polygon expansion (Official PaddleOCR uses 1.5)
Type: float
UseCpuOnly
public bool UseCpuOnly { get; set; }Enable CPU mode for ONNX Runtime. When true, forces CPU execution. When false, uses default providers.
Type: bool
Resource management
public void Dispose()PPTextDetSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.