script for text and QR code recognition.
drop the text_capture.desktop file into the /local/share/applications/ directory
in the text_capture.desktop file specify the paths for text_capture.sh and the icon
Exec=/home/user/text_capture/text_capture.sh
Icon=/home/user/text_capture/text_capture.png
make the file executable:
chmod +x ~/.local/share/applications/text_capture.desktopalso make the text_capture.sh file executable:
chmod +x text_capture.shRequired packages:
- tesseract-ocr — for text recognition.
- scrot — for screenshot capture.
- xclip — for working with the clipboard.
- notify-osd — for displaying notifications.
- zbar-tools — for recognizing QR codes. installation commands:
sudo apt install tesseract-ocr scrot xclip notify-osd zbar-toolsby installing the corresponding language packs, for example:
sudo apt install tesseract-ocr-rus tesseract-ocr-engIn the text capture function, specify the languages, for example:
LANGUAGES="rus+eng"