
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
SnapTranslate is a simple desktop application that allows you to capture a portion of your screen and instantly translate the text within it. It uses Tesseract OCR for text recognition and the Google Translate API (via the googletrans
library) for translation.
config.ini
file.rus
) and Swedish (swe
). You can download Tesseract from https://github.com/tesseract-ocr/tesseract/wiki. Make sure to install the language packs as well.Clone the repository:
git clone [https://github.com/your-github-username/SnapTranslate.git](https://github.com/tousif47/SnapTranslate.git)
cd SnapTranslate
Install the required Python packages:
pip install .
(This command assumes you are in the root directory of the project where the setup.py
file is located. It will install SnapTranslate and all its dependencies.)
Run the application:
snaptranslate
This command should launch the SnapTranslate GUI.
Capture Screen Area: Click the "+ New" button. Your screen will become dimmed, and you can click and drag to select the area you want to capture. Release the mouse button to capture.
Translate: After capturing, you will see two buttons: "Translate Russian" and "Translate Swedish". Click the button corresponding to the language of the text in your captured area.
View Translation: The translated text will be displayed in the text area at the bottom of the window.
You can configure the path to your Tesseract installation by modifying the config.ini
file located in the root directory of the project.
Locate config.ini
: This file should be in the same directory as your setup.py
file.
Edit config.ini
: Open the file in a text editor. You should see a section like this:
[Tesseract]
TESSDATA_PATH = /path/to/your/tessdata
Update the path: Replace /path/to/your/tessdata
with the actual path to the tessdata
directory of your Tesseract installation on your system. For example:
[Tesseract]
TESSDATA_PATH = C:\Program Files\Tesseract-OCR\tessdata
or
[Tesseract]
TESSDATA_PATH = /usr/share/tesseract-ocr/tessdata
Make sure to use the correct path for your operating system.
Currently, SnapTranslate supports translation from:
TBA
This project is licensed under the MIT License. See the LICENSE file for details.
googlepytrans
Thank you for using SnapTranslate!
FAQs
A simple screen capture and translation tool
We found that snaptranslate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.