SegmenterSettings
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 SegmenterSettingsMethods
set_confidence_threshold
def set_confidence_threshold(self, value: float) -> NoneSets the ConfidenceThreshold property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | float | The value to set for the ConfidenceThreshold property. |
set_detect_orientation
def set_detect_orientation(self, value: bool) -> NoneSets the DetectOrientation property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the DetectOrientation property. |
set_minimum_zone_size
def set_minimum_zone_size(self, value: int) -> NoneSets the MinimumZoneSize property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | int | The value to set for the MinimumZoneSize property. |
set_target_size
def set_target_size(self, value: int) -> NoneSets the TargetSize property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | int | The value to set for the TargetSize property. |
set_use_cpu_only
def set_use_cpu_only(self, value: bool) -> NoneSets the UseCpuOnly property.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the UseCpuOnly property. |
Properties
confidence_threshold
@propertydef confidence_threshold(self) -> floatGets the ConfidenceThreshold property.
Type: float
Read-only property.
detect_orientation
@propertydef detect_orientation(self) -> boolGets the DetectOrientation property.
Type: bool
Read-only property.
minimum_zone_size
@propertydef minimum_zone_size(self) -> intGets the MinimumZoneSize property.
Type: int
Read-only property.
target_size
@propertydef target_size(self) -> intGets the TargetSize property.
Type: int
Read-only property.
use_cpu_only
@propertydef use_cpu_only(self) -> boolGets the UseCpuOnly property.
Type: bool
Read-only property.