Last active
September 17, 2015 01:13
-
-
Save genewoo/f01cef52477d86009bb8 to your computer and use it in GitHub Desktop.
Download Tesseract Data by Script
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/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