This tiny script can take as input a rectangular region of the screen that contains some text and then copies it to the clipboard.
- Install the dependecies listed in the
requirements.txt
file:
pip install -r requirements.txt
-
Download a tesseract trained model and place it in the same directory of the script.
-
Enjoy
The script is more useful if you can launch it through a shortcut.
- You can select the region with two mouse clicks: the first in the top left corner and the second in the lower right one.
- Ctrl-V should paste the text after the OCR did its work.
!!! It's only been tested on Linux with X11. !!!