OCR Grab is a lightweight screenshot utility designed for X11, built with C and GTK3. It allows users to select screen regions interactively and instantly extracts text using OCR powered by Tesseract. With features like dynamic cursors and clipboard integration, it streamlines text capturing workflows for efficient productivity.
OCR Grab is a powerful and efficient X11 screenshot utility designed to enhance productivity by seamlessly integrating Optical Character Recognition (OCR) capabilities. Developed in C using GTK3 and leveraging Tesseract for text extraction, this tool allows users to easily interact with their screen by selecting any region to capture and instantly convert it into text.
xclip.A visual demo showcasing the functionality of OCR Grab can be found below:

To build and run OCR Grab, ensure you have a C compiler (like gcc), make, and the development headers for the following libraries installed:
gtk+-3.0tesseractleptonicazbarx11For Ubuntu or Debian systems, the following command can be used to install the necessary packages:
sudo apt update
sudo apt install build-essential pkg-config libgtk-3-dev libtesseract-dev libleptonica-dev libzbar-dev libx11-dev xclip tesseract-ocr-eng
Start by cloning the repository and compiling the project:
git clone https://github.com/talalalrwas/ocr-grab.git
cd ocr-grab
make
Upon successful completion, the executable ocr-grab will be available in the root directory of the project.
To execute the tool, run it from the terminal or bind it to a hotkey in your window manager (e.g., Mod+Print in i3):
./ocr-grab
Enter to finalize your selection and initiate the text extraction process.Escape to exit or discard the current operation.After successful text extraction, a popup window will display the extracted content, which can be copied to the clipboard by selecting "Copy & Close."
OCR Grab stands out as an indispensable tool for users requiring quick and efficient text extraction from their screen, combining simple usability with powerful underlying technology.
No comments yet.
Sign in to be the first to comment.