{% extends "base.html" %} {% from "_icons.html" import icon %} {% block title %}Providers{% endblock %} {% block content %}
Credentials come from environment variables (or a .env file next to where you run
pyocr serve). They never leave the server; restart it after changing them.
{{ tesseract_version }} at {{ tesseract }}. Using language
{{ settings.tesseract_language }} at {{ settings.ocr_dpi }} DPI.
Installed languages: {% for l in tesseract_langs %}{{ l }} {% endfor %}
Set TESSERACT_LANGUAGE=eng+deu (for example) to OCR multi-language documents.
Install it to enable the OCR tab:
sudo apt-get install tesseract-ocr tesseract-ocr-eng # Debian / Ubuntu brew install tesseract # macOS choco install tesseract # Windows (or the UB Mannheim installer)
Or run the Docker image, which already includes it.
{% endif %}Set credentials here or in environment variables / .env. Values saved here are
stored on this machine in {{ credentials_path }} (owner-only), override the environment, and take
effect immediately. Keys are never sent back to the browser.
{{ e.name }}{% if e.required %} required{% endif %} |
{% if e.state == 'set' %}{{ icon('check') }}set{% if e.saved %} saved here{% endif %}{% elif e.state == 'default' %}default: {{ e.default }}{% else %}{{ 'missing' if e.required else '–' }}{% endif %} | {{ e.description }} |
DATA_DIR | {{ settings.data_dir }} | where uploads and results are stored |
PREVIEW_DPI | {{ settings.preview_dpi }} | page images in the browser |
LLM_DPI / LLM_MAX_EDGE_PX | {{ settings.llm_dpi }} / {{ settings.llm_max_edge_px }} | image sent to the LLM |
OCR_DPI | {{ settings.ocr_dpi }} | image given to Tesseract |
LLM_CONCURRENCY | {{ settings.llm_concurrency }} | parallel LLM calls |
MAX_UPLOAD_MB | {{ settings.max_upload_mb }} | upload limit |
A ready-to-edit template of every setting is in .env.example; run
pyocr init to copy it into the current directory.