---
title: "WordsDetectionSettings"
canonical_url: "https://www.nutrient.io/api/python/settings/advanced/vision/words-detection-settings/"
md_url: "https://www.nutrient.io/api/python/settings/advanced/vision/words-detection-settings.md"
last_updated: "2026-06-12T15:43:20.744Z"
description: "Settings for WordsDetection. Values fall back through three levels: document → SDK → built-in default."
---

Settings for WordsDetection. 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`

```python

from nutrient_sdk import WordsDetectionSettings

```

## Construction

`WordsDetectionSettings` is accessed through a [`Document`](/api/python/document/) instance for per-document overrides, or via [`SdkSettings`](/api/python/settings/document/sdk-settings/) for SDK-wide defaults.

```python

# Per-document override

with Document.open("input.pdf") as doc:
    settings = doc.settings.words_detection_settings
    settings.some_field = new_value          # mutate fields directly

# SDK-wide default (applies to all documents)

SdkSettings.words_detection_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.words_detection_settings = other_settings` is rejected.

## Properties

### confidence_threshold

```python

@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`

---

---

## Related pages

- [Per-document override](/api/python/settings/advanced/vision/ai-processing-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/custom-vlm-api-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/form-labeling-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/finalizer-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/form-recognition-settings.md)
- [Vision](/api/python/settings/advanced/vision.md)
- [Per-document override](/api/python/settings/advanced/vision/ocr-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/inference-layout-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/open-ai-languages-detection-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/open-ai-picture-alt-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/reading-order-settings.md)
- [Per-document override](/api/python/settings/advanced/vision/segmenter-settings.md)

