Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #tesseract-ocr tesseract-ocr-eng
- #psm is
- #7 = Treat the image as a single text line.
- #8 = Treat the image as a single word.
- #9 = Treat the image as a single word in a circle.
- #10 = Treat the image as a single character.
- scrot -s -z -e 'tesseract $f /tmp/screenshot_ocr -l eng -psm 7 && cat /tmp/screenshot_ocr.txt | tr -s " ",",","!","?",".","-","—" "\n" > /tmp/sub && /bin/bash ~/.bin/words.sh "from scrot"' > /dev/null 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement