HUB
Sign inSign up
tesseract logo

swaleio/tesseract

By swaleio

•Updated 3 days ago

Tesseract OCR with every language Debian packages, for Swale tasks. Backs the tesseract task.

Image
0

66

swaleio/tesseract repository overview

⁠tesseract

Swale-built image backing the tesseract task definition. It is Debian's own build of Tesseract⁠, the open-source OCR engine, with the trained data for every language and script Debian packages, so a workflow can read scanned pages into text, searchable PDF, hOCR, TSV, ALTO or PAGE.

  • Base: debian:13-slim
  • Installed: the tesseract-ocr and tesseract-ocr-all packages from Debian 13 (Tesseract 5.5, with 161 languages and scripts), signed and kept patched by Debian; nothing compiled here
  • User: non-root swale (uid 1000)
  • WORKDIR /mnt/workspace, no ENTRYPOINT

⁠Invocation

The image declares no entrypoint, so a task definition's exec.args are the full command line: ["tesseract", "<image>", "<output base>", "-l", "eng", "--psm", "3", "txt"]. tesseract --list-langs lists the languages.

⁠Tags

Each tag is the version of Tesseract the image packages, such as 5.5.0. A rebuild that keeps that version, to pick up a fixed base image or wrapper, adds -r1, -r2, and so on. A tag is never reused; latest follows the newest publish.

⁠Building

From the repository root:

docker build -t swaleio/tesseract:dev images/tesseract

Merging a change under images/tesseract publishes the image under its next tag; task definitions reference it by digest.


Built from images/tesseract⁠ in the swaleio/task-definitions⁠ repository. For how a task definition references an image, see the task definition reference⁠ in the Swale documentation⁠.

The Dockerfile is covered by the MIT License⁠. Tesseract and its language data are Apache-2.0-licensed.

This image also contains software from other projects, each under its own license. The license texts its Debian packages ship, Tesseract's among them, are inside the image, in /usr/share/doc/<package>/copyright. Source code for its GPL and LGPL components: https://snapshot.debian.org/package/<source-package>/<version>/. We also provide that source code on request: see Third-party software⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:0462edfe8…
Size
395.5 MB
Last updated
3 days ago
docker pull swaleio/tesseract:latest