-
-
Save benschweizer/641ba23c0c09f28e1a248e3cfa3ea4a3 to your computer and use it in GitHub Desktop.
create transcripts from screenshots
This file contains hidden or 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 | |
# | |
for F in ~/Desktop/screenshots/*.png; do | |
>&2 echo -n . | |
FN="${F%.*}" | |
test -f "$FN.txt" && continue | |
echo "$FN" | |
done | parallel -j8 'tesseract {}.png {} -l deu+eng > /dev/null 2>&1 && echo -n "+"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment