Specifies which OCR engines read a page in document-processing pipelines.
from nutrient_sdk import OcrEngineValues
| Name | Value | Description |
|---|---|---|
OcrEngine.FUSION | 0 | Reads each page with every engine the host can run and reconciles their readings word by word. On a host without a GPU execution provider this is the primary engine alone. |
OcrEngine.PRIMARY | 1 | Reads each page with the primary engine only. |
OcrEngine.SECONDARY | 2 | Reads each page with the secondary engine only. The secondary engine needs a GPU execution provider. |
Usage Example
from nutrient_sdk import OcrEngine
# Access enum valuesvalue = OcrEngine.FUSIONprint(f"Value: {value}") # Output: Value: OcrEngine.FUSIONprint(f"Integer value: {value.value}") # Output: Integer value: 0