tetrak_ocr.backends

OCR backends.

Each module here exposes ocr_image(path) -> str and a SUPPORTED_EXTENSIONS set. Prefer tetrak_ocr.registry.get_backend() over importing these directly — it reports missing extras usefully.

Modules

armenian

OCR Armenian text with the project's own EasyOCR recognition model.

claude

OCR a single image or PDF file using the Anthropic Claude vision API.

easyocr

OCR a single image file using EasyOCR and return the extracted text.

marker

OCR a single image or PDF file using Marker (marker-pdf).

paddle

OCR a single image file using PaddleOCR and return the extracted text.

paddle_vl

OCR a file using PaddleOCR-VL and return the extracted text.

tesseract

OCR a single image file using Tesseract and return the extracted text.

tuning

Auto-configuration bands for the Tesseract backend.

vision

OCR a single image using Apple's Vision framework, on macOS.