-
-
Save QuentinN42/53396a9cfc341e780da0d123a7e753b7 to your computer and use it in GitHub Desktop.
Automatic ocr with tesseract & flameshot
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
#!/usr/bin/env bash | |
TMPDIR=$(mktemp -d -t ocr-XXXXXXXXXX) | |
trap "rm -rf $TMPDIR" EXIT | |
cd "$TMPDIR" | |
flameshot gui -r > img.png | |
tesseract img.png text | |
cat text.txt | xsel --clipboard --input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I agree, great little helper :) Thanks for sharing!