SegmenterSettings
Settings for Segmenter. 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
ConfidenceThreshold
public float ConfidenceThreshold { get; set; }Detection confidence threshold (0.0 to 1.0). Detections with confidence below this threshold will be filtered out.
Type: float
DetectOrientation
public bool DetectOrientation { get; set; }Indicates whether automatic page orientation detection is enabled.
Type: bool
MinimumZoneSize
public int MinimumZoneSize { get; set; }Minimum zone size in pixels (width * height). Zones smaller than this will be filtered out.
Type: int
TargetSize
public int TargetSize { get; set; }Target size for image preprocessing (height and width).
Type: int
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()SegmenterSettings 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.