Settings for Vision. 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: Vision
from nutrient_sdk import VisionSettingsConstruction
VisionSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.
# Per-document overridewith Document.open("input.pdf") as doc: settings = doc.settings.vision_settings settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)SdkSettings.vision_settings.some_field = new_valueSettings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.vision_settings = other_settings is rejected.
Properties
enable_ocr
@propertydef enable_ocr(self) -> OcrActivationMode
@enable_ocr.setterdef enable_ocr(self, value: OcrActivationMode) -> NoneControls OCR resource loading and OCR-based word detection inside the ICR image pipeline.
Type: OcrActivationMode
Default: OcrActivationMode.Auto
enable_vlm
@propertydef enable_vlm(self) -> bool
@enable_vlm.setterdef enable_vlm(self, value: bool) -> NoneIndicates whether the ICR image pipeline should run late VLM augmentation. also enables this behavior for backward-compatible engine selection.
Type: bool
Default: false
engine
@propertydef engine(self) -> VisionEngine
@engine.setterdef engine(self, value: VisionEngine) -> NoneSpecifies which vision processing engine/pipeline to use for content extraction.
Type: VisionEngine
Default: VisionEngine.Icr
features
@propertydef features(self) -> VisionFeatures
@features.setterdef features(self, value: VisionFeatures) -> NoneVision features to enable during document processing.
Type: VisionFeatures
Default: VisionFeatures.All
output_format
@propertydef output_format(self) -> VisionOutputFormat
@output_format.setterdef output_format(self, value: VisionOutputFormat) -> NoneFormat of content returned by . Defaults to .
Type: VisionOutputFormat
Default: VisionOutputFormat.Json
provider
@propertydef provider(self) -> VlmProvider
@provider.setterdef provider(self, value: VlmProvider) -> NoneThe Vision Language Model provider to use for AI-powered features.
Type: VlmProvider
Default: VlmProvider.Custom