Tesseract OCR
$ tesseract Foundation Low RiskTesseract OCR extracts text from PNG/JPEG/TIFF images offline across 100+ languages. Passing stdout as the output target lets agents read OCR text or structured tsv bounding boxes directly without creating temporary files.
brew install tesseract Zero-cost offline OCR (tesseract img.png stdout --quiet) converts screenshots/scans to text before spending multimodal vision tokens.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic stdout target, --quiet, --list-langs, and structured tsv/hocr outputs, though lacks native JSON output.
- Supports
stdout,--quiet,--list-langs, andtsvoutput
100% offline local C++ binary with zero network calls or credentials.
- Offline local image processing;
stdoutavoids even disk writes
Easy brew/apt install, though non-English languages require installing tesseract-lang / extra tessdata.
- Widely packaged on macOS, Linux, Windows; extra language packs optional
Fast, free OCR for clean scans and screenshots, though accuracy trails multimodal VLMs on skewed or handwritten photos.
- Lightweight offline OCR and searchable PDF generation
Long-standing foundational OSS project (tesseract-ocr/tesseract) under Apache-2.0.
- Official
tesseract-ocr/tesseractrepository
Solid tessdoc CLI page, though --oem / --psm numeric modes require checking --help-extra.
- Official CLI usage docs at tesseract-ocr.github.io
Security, Auth & Guardrails
None required; operates 100% offline using local tessdata language models.
Free, Apache-2.0 open-source C++ CLI.
# Tesseract Agent Rules - Pass `stdout` as the output basename and `--quiet` when you only need extracted text in context (avoids stray `.txt` files). - Verify installed languages with `tesseract --list-langs` before passing `-l <lang>`.
Agent-Ready Command Recipes
Safe Read-Only Queries
tesseract screenshot.png stdout -l eng --quiet
Reads screenshot.png offline and prints recognized text to stdout without writing files.
tesseract receipt.png stdout -l eng --quiet tsv
Emits tab-separated coordinates and OCR confidence scores directly to stdout.
Controlled Writes & Previews
tesseract scan.png output-searchable -l eng pdf
Writes output-searchable.pdf with an embedded invisible OCR text layer.
Strengths for Agents
- + 100% offline, zero-cost OCR with direct
stdoutstreaming andtsvbounding boxes. - + Generates searchable PDFs natively with one command.
Caveats & Pitfalls
- ! No native JSON output (use
tsvor plain text). - ! Accuracy drops on low-contrast, skewed, or handwritten images compared to modern VLMs.