Controls optional restoration of the page image before vision inference.
from nutrient_sdk import RestorationModeValues
| Name | Value | Description |
|---|---|---|
RestorationMode.DISABLED | 0 | Do 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.LOCAL | 1 | Use 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 valuesvalue = RestorationMode.DISABLEDprint(f"Value: {value}") # Output: Value: RestorationMode.DISABLEDprint(f"Integer value: {value.value}") # Output: Integer value: 0