LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ocr-grab

X11 region screenshot tool with instant Tesseract OCR to clipboard (Flameshot-like)

TLDR

Launch the selector and OCR the chosen region to clipboard
$ ocr-grab
copy
Build from source
$ make
copy

SYNOPSIS

ocr-grab

DESCRIPTION

OCR Grab is a lightweight C/GTK3 + Tesseract utility for X11. It lets you interactively select a screen region (with adjustment mode) and immediately runs OCR on the selection, copying the extracted text to the clipboard (with xclip fallback for minimal WMs).It is designed as a fast, keyboard-driven complement or replacement for Flameshot-style workflows when the goal is to capture text rather than an image. There are no CLI flags beyond launching the interactive selector.

USAGE

1. Bind `ocr-grab` to a hotkey (e.g. Mod+Print in i3).2. Drag to select a region.3. Adjust with mouse if needed (edges, corners, or move).4. Press Enter to OCR and copy, or Escape to cancel.A popup shows the result; "Copy & Close" puts it on both primary and selection clipboards.

DEPENDENCIES

Build requires development headers for gtk+-3.0, tesseract, leptonica, zbar, and x11, plus a C compiler and make. Runtime language data (e.g. `tesseract-ocr-eng`) and optionally `xclip` for bare WMs.

CAVEATS

- X11 only (no native Wayland support mentioned).- Requires tesseract language data (e.g. tesseract-ocr-eng).- GPL-3.0 licensed.

SEE ALSO

RESOURCES

Copied to clipboard
Kai