A simple script to snip text from images using easyocr or tesseract.
- pip install -r requirements.txt
- download tesseract.exe if you want to use its mode, and add it to your environment variables or add it's location to TesseractPath variable in TextSnipper class.
- Download tesseract from here.
- Run the script, with -h for help to find the right usage, for instance:
python main.py -h
- When the app run select the area you want to snip or click any where to snip whole screen, then the text will be copied to your clipboard!
- NOTE: if it is the first time you run the script with easyocr it will take a while to download the model, but after that it will be cached and it will be faster.
- I added a batch file to run the script without opening the terminal, you can use it by:
- Add the file to the environment variables.
- Run the script by typing text-snipper in the run window (Win + R).
- Explanation of the batch file is in the file itself (REM is a comment in batch files).