screenshot: also add OCR

This commit is contained in:
Vincent Bernat 2022-11-22 20:01:22 +01:00
parent 08ac5f514b
commit d5b99dc020

View file

@ -14,4 +14,10 @@ case $1 in
| xclip -selection clipboard -t image/png | xclip -selection clipboard -t image/png
notify-send -i camera-photo "Screenshot" "Saved to clipboard" notify-send -i camera-photo "Screenshot" "Saved to clipboard"
;; ;;
ocr)
maim -u -s -b 5 -l -c 0.3,0.4,0.6,0.4 -d 0.1 \
| tesseract --dpi 96 -l eng - - \
| xclip -selection clipboard -t text/plain
notify-send -i ebook-reader "OCR" "Saved to clipboard"
;;
esac esac