Skip to main content

Provider Selection Helper

Use the infer_provider function to create OCR instances by provider name without importing engine classes.

Async Processing

All OCR methods support async execution. The framework is async-first — sync methods are convenience wrappers around the async core.

Timeout Control

Use layer_1_timeout to set a maximum processing time for the OCR engine. If the timeout is exceeded, an OCRTimeoutError is raised.

Batch Processing with DeepSeek

DeepSeek OCR provides optimized batch processing for multi-page PDFs, processing all pages in a single batch for better performance.

Advanced PaddleOCR Features

PaddleOCR providers offer specialized features for complex document understanding.

Structure Recognition with PPStructureV3Engine

Information Extraction with PPChatOCRv4Engine

Image Preprocessing

Apply preprocessing to improve OCR accuracy for low-quality images.