Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Tesseract OCR

$ tesseract Foundation Low Risk
Tesseract OCR Project · AI & Media · Apache-2.0 · macos / linux / windows

Tesseract 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.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install tesseract
CLI vs MCP Decision CLI Only

Zero-cost offline OCR (tesseract img.png stdout --quiet) converts screenshots/scans to text before spending multimodal vision tokens.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Deterministic stdout target, --quiet, --list-langs, and structured tsv/hocr outputs, though lacks native JSON output.

  • Supports stdout, --quiet, --list-langs, and tsv output
Trust & Safety 25 / 25

100% offline local C++ binary with zero network calls or credentials.

  • Offline local image processing; stdout avoids even disk writes
Setup & Portability 13 / 15

Easy brew/apt install, though non-English languages require installing tesseract-lang / extra tessdata.

  • Widely packaged on macOS, Linux, Windows; extra language packs optional
Utility & Efficiency 11 / 15

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
Maintenance & Lineage 8 / 10

Long-standing foundational OSS project (tesseract-ocr/tesseract) under Apache-2.0.

  • Official tesseract-ocr/tesseract repository
Docs & Verifiability 6 / 10

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

Auth Modes
No Auth
Credential Storage

None required; operates 100% offline using local tessdata language models.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, Apache-2.0 open-source C++ CLI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Extract plain text from an image directly to stdout
tesseract screenshot.png stdout -l eng --quiet

Reads screenshot.png offline and prints recognized text to stdout without writing files.

Extract word bounding boxes and confidence as TSV
tesseract receipt.png stdout -l eng --quiet tsv

Emits tab-separated coordinates and OCR confidence scores directly to stdout.

Controlled Writes & Previews

Convert a scanned image into a searchable PDF
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 stdout streaming and tsv bounding boxes.
  • + Generates searchable PDFs natively with one command.

Caveats & Pitfalls

  • ! No native JSON output (use tsv or plain text).
  • ! Accuracy drops on low-contrast, skewed, or handwritten images compared to modern VLMs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI