This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/enums/restoration-mode.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. RestorationMode

Controls optional restoration of the page image before vision inference.

from nutrient_sdk import RestorationMode

Values

NameValueDescription
RestorationMode.DISABLED0Do not run page-image restoration. This is the default and should be used for normal scans, PDF-rendered pages, born-digital documents, and reasonably captured document images.
RestorationMode.LOCAL1Use the local restoration path only when the input is a badly taken picture of a document page, for example a folded, warped, or perspective-distorted photo. Do not enable this for ordinary scans, screenshots, born-digital PDFs, or already flat document images.

Usage Example

from nutrient_sdk import RestorationMode
# Access enum values
value = RestorationMode.DISABLED
print(f"Value: {value}") # Output: Value: RestorationMode.DISABLED
print(f"Integer value: {value.value}") # Output: Integer value: 0