{"id":25268316,"url":"https://github.com/funinkina/gnome-ocr-screenshot","last_synced_at":"2025-07-30T14:38:37.533Z","repository":{"id":276173721,"uuid":"928456504","full_name":"funinkina/Gnome-OCR-Screenshot","owner":"funinkina","description":"A simple python script to extarct text from screenshot in GNOME desktop environment using pytesseract.","archived":false,"fork":false,"pushed_at":"2025-04-18T06:27:03.000Z","size":464,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T19:42:14.146Z","etag":null,"topics":["gnome","gnome-shell","linux","ocr","screenshot","text-extraction","tools","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funinkina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-06T17:10:43.000Z","updated_at":"2025-04-18T06:27:06.000Z","dependencies_parsed_at":"2025-02-06T18:27:20.056Z","dependency_job_id":"83f4a656-eb00-4c45-b786-4daf49426d86","html_url":"https://github.com/funinkina/Gnome-OCR-Screenshot","commit_stats":null,"previous_names":["funinkina/gnome-ocr-screenshot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/funinkina/Gnome-OCR-Screenshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funinkina%2FGnome-OCR-Screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funinkina%2FGnome-OCR-Screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funinkina%2FGnome-OCR-Screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funinkina%2FGnome-OCR-Screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funinkina","download_url":"https://codeload.github.com/funinkina/Gnome-OCR-Screenshot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funinkina%2FGnome-OCR-Screenshot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267883549,"owners_count":24160234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gnome","gnome-shell","linux","ocr","screenshot","text-extraction","tools","utility"],"created_at":"2025-02-12T10:24:46.631Z","updated_at":"2025-07-30T14:38:37.525Z","avatar_url":"https://github.com/funinkina.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 style=\"text-align: center;\"\u003e GNOME Screenshot OCR \u003c/h1\u003e\n\nA simple OCR (Optical Character Recognition) tool for the GNOME desktop environment that allows you to extract text as well as scan QR codes directly automatically from screenshots.\n\n![Screenshot](screenshot.png)\n\n## Features\n\n- Uses native GNOME screenshot portal\n- Minimal Dependencies (pytesseract and pyzbar only)\n- Single file for easy shortcut setup\n- Ability to scan QR codes without any additional setup\n- Can save as file directly\n- Can copy to clipboard directly\n- Supports multiple languages\n- Customizable save location\n- Customizable keyboard shortcuts\n\n## Requirements\n\n- Python 3.x (Preinstalled on most Linux distributions)\n- python-gobject (For gi module in python)\n- GTK 4 (Preinstalled on GNOME-based distributions)\n- Python Tesseract OCR (See below for installation instructions)\n- pyzbar (optional, for QR code scanning)\n\n## Installation\n\n### 1. Install system dependencies:\n```bash\n# Ubuntu/Debian\nsudo apt install tesseract-ocr\n\n# Fedora\nsudo dnf install tesseract\nsudo dnf install python3-pytesseract\n\n# Arch Linux\nsudo pacman -S tesseract\nsudo pacman -S python-pytesseract\n\n# Using builtin python package manager\npip install pytesseract\n```\n\n### You can also install `pyzbar` optionally for QR code scanning support:\n```bash\n# Ubuntu/Debian\nsudo apt-get install libzbar0\nsudo apt install python3-pyzbar \n\n# Arch Linux from AUR\nyay -S pyzbar\n\n#Using builtin python package manager\npip install pyzbar\n```\n\n\n### 2. For additional language support, install the corresponding Tesseract language packages:\n```bash\n# Example for hindi language support\nsudo apt install tesseract-ocr-hin  # Ubuntu/Debian\nsudo dnf install tesseract-langpack-hin  # Fedora\nsudo pacman -S tesseract-data-hin  # Arch Linux\n```\n\n## Usage\n\nBasic usage:\n```bash\npython gnome-ocr-screenshot.py\n```\n\n## Recommended Usage\nMove the script to a directory in your PATH and create keyboard shortcut for quick access.\n\n```bash\ngit clone https://github.com/funinkina/Gnome-OCR-Screenshot\ncd Gnome-OCR-Screenshot\nsudo cp gnome-screenshot-ocr.py /usr/local/bin/gnome-screenshot-ocr\n# alternatively, you can create a symbolic link\nsudo ln -s gnome-screenshot-ocr.py /usr/local/bin/gnome-screenshot-ocr\nsudo chmod +x ~/.local/bin/gnome-screenshot-ocr\n```\n\n### Then make keyboard shortcut in gnome control center to run the script.\n1. Open GNOME settings\n2. Go to Keyboard Shortcuts\n3. Add a new shortcut with the command `gnome-screenshot-ocr` with the appropriate arguments (see below)\n4. Assign a key combination to the shortcut, for example: `Meta+PrintScreen`. \n\n### Command-line Options\n\n- `--help`: Show help message and exit.\n- `--enablesaving`: Keep the screenshot file after text extraction.\n- `--nocloseonaction`: Keep the application running after saving text or copying to clipboard.\n- `--lang`: Specify OCR language(s) (e.g., `--lang eng+deu` for English and German). Default is all the available languages of Tesseract data installed on your system.\n- `--save-location`: Set default directory for saving text files (e.g., `--save-location ~/Documents`). Default is the user's documents directory.\n\nExample with options:\n```bash\ngnome-screenshot-ocr --lang eng+deu --save-location ~/Documents\n```\n![shortcut example](shortcut_demo.png)\n\n## How It Works\n\n1. Launch the application\n2. Select an area of your screen to capture\n3. The application will extract text from the selected area\n4. View the extracted text in a dialog window\n5. Choose to either copy the text to clipboard or save it to a file\n\n## License\n\n[MIT](https://github.com/funinkina/Gnome-OCR-Screenshot/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuninkina%2Fgnome-ocr-screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuninkina%2Fgnome-ocr-screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuninkina%2Fgnome-ocr-screenshot/lists"}