Read text within a screen-grab and put it in your clipboard.
ocr2clip
uses tesseract
to perform text recognition and tries to remain package agnostic for additional tasks (see: Dependencies).
# Install to /usr/local/bin
cd /usr/local/bin
sudo wget https://raw.githubusercontent.com/ulfnic/ocr2clip/main/ocr2clip
sudo chmod +x ./ocr2clip
# Test run
ocr2clip
# Satisfy dependencies if prompted to do so.
# Consider installing ffmpeg or mogrify (part of imagemagick) for improved accuracy.
tesseract
maim
orimport
xclip
orxsel
grim
slurp
wl-copy
ffmpeg
ormogrify
import
and mogrify
are part of imagemagick
- Make sure you have
ffmpeg
ormogrify
installed
which ffmpeg
which mogrify
- Make sure
/usr/local/bin
is in your $PATH or run it explicitly using/usr/local/bin/ocr2clip
Licensed under GNU Affero General Public License v3. See LICENSE for details.