Skip to content

Instantly share code, notes, and snippets.

@genewoo
Last active September 17, 2015 01: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 genewoo/f01cef52477d86009bb8 to your computer and use it in GitHub Desktop.
Save genewoo/f01cef52477d86009bb8 to your computer and use it in GitHub Desktop.
Download Tesseract Data by Script
#!/bin/bash
if [ $# -eq 0 ]
then
echo "tessdata.sh LANG [TAG]"
echo "check LANG and TAG from https://github.com/tesseract-ocr/tessdata/"
fi
BRANCH=master
if [ $# -eq 2 ]
then
BRANCH=$2
fi
for FILE in cube.bigrams cube.fold cube.lm cube.nn cube.params cube.size cube.word-freq tesseract_cube.nn traineddata
do
wget https://raw.githubusercontent.com/tesseract-ocr/tessdata/$BRANCH/$1.$FILE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment