Skip to content

Instantly share code, notes, and snippets.

@benschweizer
Last active August 24, 2022 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benschweizer/641ba23c0c09f28e1a248e3cfa3ea4a3 to your computer and use it in GitHub Desktop.
Save benschweizer/641ba23c0c09f28e1a248e3cfa3ea4a3 to your computer and use it in GitHub Desktop.
create transcripts from screenshots
#!/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