Last active
June 27, 2021 21:38
-
-
Save mikeri/21d0970b84675dbc042d71f39499ed44 to your computer and use it in GitHub Desktop.
Mark an area of the screen, convert it to text and put the text in clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sleep .1 | |
scrot --select /tmp/ocr.png | |
tesseract -c page_separator="" /tmp/ocr.png /tmp/ocr-out | |
xclip -selection clipboard -i < /tmp/ocr-out.txt | |
rm /tmp/ocr.png | |
rm /tmp/ocr-out.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment