Skip to content

Commit

Permalink
/usr/share/fonts is the wrong path on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jimregan committed May 18, 2015
1 parent e9f5935 commit 16ac3b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion training/tesstrain_utils.sh
Original file line number Diff line number Diff line change
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 16ac3b0

Please sign in to comment.