Created
March 25, 2015 06:07
-
-
Save ferki/ba8fc352c47e3ab0f423 to your computer and use it in GitHub Desktop.
Copy text from screenshot to 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/sh | |
IMAGE="/tmp/scrocr.png" | |
scrot -s ${IMAGE} | |
mogrify -modulate 100,0 -resize 400% ${IMAGE} | |
tesseract ${IMAGE} stdout | xsel -bi | |
rm ${IMAGE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment