OCR Orchestrator Parameters
TheOCR orchestrator accepts the following parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
layer_1_ocr_engine | Engine instance | — | The configured Layer 1 engine instance |
layer_1_timeout | float | None | None | Timeout in seconds for Layer 1 processing. Raises OCRTimeoutError on expiry |
Engine Configuration
Each engine is instantiated with its own parameters. Common parameters shared across most engines:| Parameter | Type | Default | Description |
|---|---|---|---|
languages | List[str] | ['en'] | Languages to detect |
confidence_threshold | float | 0.0 | Minimum confidence threshold (0.0-1.0) for accepting OCR results |
rotation_fix | bool | False | Enable automatic rotation correction for skewed images |
enhance_contrast | bool | False | Enhance image contrast before OCR processing |
remove_noise | bool | False | Apply noise reduction filter to improve text clarity |
pdf_dpi | int | 300 | DPI resolution for PDF rendering (higher = better quality, slower) |
preserve_formatting | bool | True | Try to preserve text formatting (line breaks, spacing) |
Each engine may have additional provider-specific parameters. See the individual provider pages for details.

