OcrActivationMode
Controls whether OCR resource loading and OCR-based word detection run inside the ICR image pipeline.
from nutrient_sdk import OcrActivationModeValues
| Name | Value | Description |
|---|---|---|
OcrActivationMode.AUTO | 0 | OCR follows the pipeline: it runs when VLM augmentation is disabled (the ICR pipeline relies on OCR for text) and is skipped when VLM augmentation is enabled (the VLM supplies the text). This is the default. |
OcrActivationMode.ACTIVATED | 1 | OCR always runs, regardless of whether VLM augmentation is enabled. |
OcrActivationMode.DEACTIVATED | 2 | OCR never runs, regardless of whether VLM augmentation is enabled. |
Usage Example
from nutrient_sdk import OcrActivationMode
# Access enum valuesvalue = OcrActivationMode.AUTOprint(f"Value: {value}") # Output: Value: OcrActivationMode.AUTOprint(f"Integer value: {value.value}") # Output: Integer value: 0