From 16ac3b0a2059ebbfba13c3625f6193df0970489d Mon Sep 17 00:00:00 2001 From: Jim O'Regan Date: Mon, 18 May 2015 09:52:13 +0100 Subject: [PATCH] /usr/share/fonts is the wrong path on Mac --- training/tesstrain_utils.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/training/tesstrain_utils.sh b/training/tesstrain_utils.sh index 0c2c3a9fb1..faf175db46 100755 --- a/training/tesstrain_utils.sh +++ b/training/tesstrain_utils.sh @@ -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