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. VlmEnhancedIcr 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
fallback_provider
@propertydef fallback_provider(self) -> VlmProvider
@fallback_provider.setterdef fallback_provider(self, value: VlmProvider) -> NoneOptional secondary provider used to transparently retry a request when the primary Provider fails in a way a retry on the same model can’t fix — a content-filtered or refused response, or a transient outage (unreachable endpoint, server error, rate limit). The fallback’s connection (endpoint, key, model) is read from that provider’s settings class, so configure it alongside the primary’s. Failover is per request and transparent to the result.
Type: VlmProvider
Default: VlmProvider.Unknown
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 ExtractContent. Defaults to Json.
Type: VisionOutputFormat
Default: VisionOutputFormat.Json
provider
@propertydef provider(self) -> VlmProvider
@provider.setterdef provider(self, value: VlmProvider) -> NoneThe primary Vision Language Model provider to use for AI-powered features.
Type: VlmProvider
Default: VlmProvider.Custom