ocracy.backends#
Implemented OCR backends.
Each real backend is a subpackage with a config.py (BACKEND_CONFIG) and an
adapter.py (Adapter with a read method). The registry
(ocracy.registry) discovers them automatically. Subpackages whose name
starts with _ (e.g. ocracy.backends._template) are scaffolding
helpers, not real backends, and are skipped by discovery.
To add a backend, scaffold one from the template:
from ocracy.make_backend import scaffold_backend
scaffold_backend("easyocr") # creates ocracy/backends/easyocr/ from the template
Modules
AWS Textract backend for ocracy (cloud OCR + forms/tables). |
|
Azure AI Document Intelligence backend for ocracy (cloud read/layout). |
|
Claude (Anthropic) vision backend for ocracy — VLM 'read + reason' OCR. |
|
EasyOCR backend for ocracy. |
|
Google Cloud Vision API (TEXT_DETECTION & DOCUMENT_TEXT_DETECTION) backend for ocracy. |
|
OpenAI GPT-4o vision backend for ocracy — VLM 'read + reason' OCR. |
|
Mathpix (Snip + Convert API) backend for ocracy. |
|
Mistral OCR backend for ocracy (VLM document OCR via the Mistral API). |
|
OCR.space OCR API backend for ocracy. |
|
ocrmac (Apple Vision) backend for ocracy. |
|
PaddleOCR backend for ocracy (PP-OCR text recognition). |
|
pix2tex (LaTeX-OCR) backend for ocracy — local math image -> LaTeX. |
|
RapidOCR backend for ocracy. |
|
Tesseract backend for ocracy (via pytesseract). |
|
TrOCR (handwritten) backend for ocracy — local handwriting recognition. |