Skip to content

Commit

Permalink
Merge pull request #23 from tesseract-ocr/training-sh
Browse files Browse the repository at this point in the history
/usr/share/fonts is the wrong path on Mac
  • Loading branch information
jimregan committed May 18, 2015
2 parents e9f5935 + 16ac3b0 commit 05acff6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion training/tesstrain_utils.sh
Expand Up @@ -20,7 +20,11 @@ FONTS=(
"Arial" \
"Times New Roman," \
)
FONTS_DIR="/usr/share/fonts/truetype/"
if [ "$(uname)" == "Darwin" ];then
FONTS_DIR="/Library/Fonts/"
else
FONTS_DIR="/usr/share/fonts/truetype/"
fi
OUTPUT_DIR="/tmp/tesstrain/tessdata"
OVERWRITE=0
RUN_SHAPE_CLUSTERING=0
Expand Down

0 comments on commit 05acff6

Please sign in to comment.