ScreenShot OCR is a simple GUI application that captures a screenshot and performs Optical Character Recognition (OCR) on it. Prerequisites
- Linux operating system (Tested on Debian 12 and Ubuntu 20.04)
- Python 3 installed
- Dependencies listed in the requirements.txt file
- Tesseract OCR engine
- Xclip
- Maim
Follow these steps to install and set up ScreenShot OCR:
-
Ensure you have Python 3 installed on your system. If not, you can download and install it from the official Python website.
-
Install the required dependencies by running the following command in your terminal:
pip install -r requirements.txt
- Install the Tesseract OCR engine. You can install it using the package manager for your Linux distribution. For example, on Debian-based systems, you can use the following command:
sudo apt-get install tesseract-ocr
- Install Xclip and Maim, which are also available through the package manager. On Debian-based systems, you can use the following commands:
sudo apt-get install xclip maim
Once you have installed the necessary dependencies, you can use ScreenShot OCR as follows:
- Launch the application by executing the following command in your terminal:
python main.py
-
The application will open a GUI window.
-
Capture a screenshot by clicking the "Capture" button or using a keyboard shortcut if available.
-
The captured screenshot will be processed using OCR, and the extracted text will be displayed in the GUI window.