( - tested on ubuntu 20.04)
for tracking the application future please see:TODO
- run getSS.py file from terminal using python3
$ python3 getSS.py # to get text to clipboard
$ python3 getSS.py --save # only save image
- draw rectangle to target area
- and done..
for ubuntu >= 18.04 & Mac
required packages
- scrot-1.6 (apt includes older version do NOT use it, if your system already have it simply uninstall and install this 🙃)
- using conda (recommended) if you are using conda, don't forget to keep your conda environment active whole installation process
$ conda install -c conda-forge tesseract-ocr \
conda install -c conda-forge dbus-python \
sudo apt install libimlib2-dev \
pip3 install -r requirements.txt
- using apt
$ sudo apt install tesseract-ocr \
sudo apt install python3-dbus \
sudo apt install libimlib2-dev \
pip3 install -r requirements.txt
- using brew
$ brew install tesseract \
brew install d-bus \
sudo apt install libimlib2-dev \
pip3 install -r requirements.txt
simply run installer.py file 😃 and it's need to be done..
create config.py and paste (you can see my own path in config.py file)
tess_path = "<your tesseract installation path>"
save_path = "<pictures folder>"
to get tesseract bin path for linux
$ which tesseract
create your sctc file like this:
<path/to/your/python> <absolute/path/of/this/dir/getSS.py>
and then you can use SCTC globally