This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/settings/advanced/vision/segmenter-settings.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. 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.

Tags: Advanced, Vision

from nutrient_sdk import SegmenterSettings

Construction

SegmenterSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.

# Per-document override
with Document.open("input.pdf") as doc:
settings = doc.settings.segmenter_settings
settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)
SdkSettings.segmenter_settings.some_field = new_value

Settings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.segmenter_settings = other_settings is rejected.

Properties

confidence_threshold

@property
def confidence_threshold(self) -> float
@confidence_threshold.setter
def confidence_threshold(self, value: float) -> None

Detection confidence threshold (0.0 to 1.0). Detections with confidence below this threshold will be filtered out.

Type: float

Default: 0.5f


detect_orientation

@property
def detect_orientation(self) -> bool
@detect_orientation.setter
def detect_orientation(self, value: bool) -> None

Indicates whether automatic page orientation detection is enabled.

Type: bool

Default: true


minimum_zone_size

@property
def minimum_zone_size(self) -> int
@minimum_zone_size.setter
def minimum_zone_size(self, value: int) -> None

Minimum zone size in pixels (width * height). Zones smaller than this will be filtered out.

Type: int

Default: 100


target_size

@property
def target_size(self) -> int
@target_size.setter
def target_size(self, value: int) -> None

Target size for image preprocessing (height and width).

Type: int

Default: 640


use_cpu_only

@property
def use_cpu_only(self) -> bool
@use_cpu_only.setter
def use_cpu_only(self, value: bool) -> None

Enable CPU mode for ONNX Runtime. When true, forces CPU execution. When false, uses default providers.

Type: bool

Default: true