SuryaOCRConverter
DashAI.back.converters.document.SuryaOCRConverter
Extract multilingual document text using Surya OCR.
Runs Surya's Qwen3.5-based OCR checkpoint directly with Transformers and PyTorch. The model weights use DashAI's normal component download flow; no external inference server or executable is needed.
Parameters
- keep_image : boolean, default=
True - Keep each image and insert its text right after it. Off, each image is replaced by its text, and images without text are removed.
- max_tokens : integer, default=
12288 - Maximum generated tokens per page. Raise for dense pages; a page that reaches the limit fails instead of saving partial text.
- device : string, default=
CPU - Device the model runs on. GPU choices appear when PyTorch is installed with CUDA support.