No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-19 19:33:57 +02:00
bin Initial commit 2026-09-19 19:33:57 +02:00
README.md Initial commit 2026-09-19 19:33:57 +02:00

ocr

Runs tesseract on image files, or on the clipboard when no file is given, and prints the recognized text on stdout.

ocr screenshot.png
ocr -l fra+eng page1.png page2.png
ocr            # clipboard

Dependencies

  • tesseract and the language data you need (e.g. tesseract-ocr-fra on Debian, tesseract-data-fra on Arch)
  • Python 3 with pytesseract and Pillow
  • for the clipboard: wl-paste (Wayland) or xclip (X11), used by Pillow