wclip-ocr is a console app for Wayland that can extract text from images stored in clipboard.
- wl-clipboard
- tesseract
- pip
- python
- Install all dependencies
- Clone the repository and cd into it
git clone https://github.com/fib-nm/wclip-ocr.git
cd wclip-ocr- Run
build.shscript
./build.shAfter running the script you will have binary wclip-ocr in wclip-ocr.
Launch wclip-ocr script.
./wclip-ocrTo set the language, type its name in the command line and press Enter (names of the available languages are printed when the command starts).
To extract text from image in the clipboard just press Enter.
To close application, press Ctrl+D.
Since program uses tesseract for OCR, to get new languages you will need to install tesseract-data-lang packages from your system's repository.
If you don't want to write full path to the binary every time you use the program, you can add alias for it to your .bashrc file:
alias ocr='/path/to/wclip-ocr/wclip-ocr'