A OCR text extraction tool for GNOME Shell that captures text from screen selections and copies it to the clipboard. Similar to PowerToys Text Extractor for Windows.
- 🖼️ Screen Area Selection: Select any area of your screen to extract text from
- 📋 Clipboard Integration: Automatically copies extracted text to clipboard
- 🌐 Multi-language Support: Supports English and Tamil (தமிழ்) languages
- ⚡ Fast & Reliable: Uses Tesseract OCR engine for accurate text recognition
The extension requires the following packages to be installed:
- tesseract-ocr: OCR engine for text extraction
- xclip: Clipboard utility for copying text
- gnome-screenshot: Screenshot utility for capturing screen areas
- tesseract-ocr-tam: Tamil language pack (only if you need Tamil text recognition)
-
Download the extension:
git clone https://github.com/imshaaz21/text-extractor-gnome.git cd text-extractor-gnome
-
Install dependencies automatically:
chmod +x scripts/install-dependencies.sh scripts/install-dependencies.sh
This script will detect your Linux distribution and install the required packages.
-
Install the extension:
# Copy to extensions directory glib-compile-schemas extension/schemas mkdir -p ~/.local/share/gnome-shell/extensions/[email protected] cp -r extension/* ~/.local/share/gnome-shell/extensions/[email protected]/ # Restart GNOME Shell # Press Alt+F2, type 'r', and press Enter # Or log out and log back in
-
Enable the extension:
- Open GNOME Extensions app
- Find "Text Extractor" and toggle it on
- Or use command line:
gnome-extensions enable [email protected]
sudo apt update
sudo apt install tesseract-ocr tesseract-ocr-tam xclip gnome-screenshot
sudo apt install tesseract-ocr-tam # Optional for Tamil support
sudo dnf install tesseract tesseract-langpack-tam xclip gnome-screenshot
sudo dnf install tesseract-langpack-tam # Optional for Tamil support
Then follow steps 3-4 from Method 1.
To remove the extension, run the following command:
rm -rf ~/.local/share/gnome-shell/extensions/[email protected]
gnome-extensions disable [email protected]
- Quick Access: Click the Text Extractor icon in the top panel
- Extract Text: Select "Extract Text from Screen" from the menu
- Select Area: Use your mouse to select the area containing text
- Get Results: The extracted text will be automatically copied to your clipboard
- Extract Text from Screen: Start the text extraction process
- Language: Shows currently selected OCR language
- Check Dependencies: Verify all required packages are installed
- Preferences: Configure language and display settings
- Open the extension preferences to change the OCR language
- Currently supports:
- English (eng)
- Tamil (தமிழ்) (tam)
- Toggle the panel indicator visibility
This project is licensed under the GNU General Public License v3.0.