Merged view of SegmenterSettings, combining immutable defaults, SDK overrides, and document overrides. Property writes automatically target the appropriate level (document if available, otherwise SDK).

from nutrient import SegmenterSettings

Methods

set_confidence_threshold

def set_confidence_threshold(self, value: float) -> None

Sets the ConfidenceThreshold property.

Parameters:

NameTypeDescription
valuefloatThe value to set for the ConfidenceThreshold property.

set_detect_orientation

def set_detect_orientation(self, value: bool) -> None

Sets the DetectOrientation property.

Parameters:

NameTypeDescription
valueboolThe value to set for the DetectOrientation property.

set_minimum_zone_size

def set_minimum_zone_size(self, value: int) -> None

Sets the MinimumZoneSize property.

Parameters:

NameTypeDescription
valueintThe value to set for the MinimumZoneSize property.

set_target_size

def set_target_size(self, value: int) -> None

Sets the TargetSize property.

Parameters:

NameTypeDescription
valueintThe value to set for the TargetSize property.

set_use_cpu_only

def set_use_cpu_only(self, value: bool) -> None

Sets the UseCpuOnly property.

Parameters:

NameTypeDescription
valueboolThe value to set for the UseCpuOnly property.

Properties

confidence_threshold

@property
def confidence_threshold(self) -> float

Gets the ConfidenceThreshold property.

Type: float

Read-only property.


detect_orientation

@property
def detect_orientation(self) -> bool

Gets the DetectOrientation property.

Type: bool

Read-only property.


minimum_zone_size

@property
def minimum_zone_size(self) -> int

Gets the MinimumZoneSize property.

Type: int

Read-only property.


target_size

@property
def target_size(self) -> int

Gets the TargetSize property.

Type: int

Read-only property.


use_cpu_only

@property
def use_cpu_only(self) -> bool

Gets the UseCpuOnly property.

Type: bool

Read-only property.