- Timestamp:
- 2020-06-16T15:00:39+12:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/tesseract/trunk/src/packages/CASCADE-MAKE/TESSERACT.sh
r34178 r34186 25 25 opt_run_untar $force_untar $auto_untar $package $version 26 26 27 # Need to do this for TESSERACT, before we can do configure /make/make install27 # Need to do this for TESSERACT, before we can do configure->make->make install 28 28 pushd $package$version; 29 29 libtoolize … … 47 47 cp $GEXTTESS_DEVEL/packages/tessdata-langs.tar.gz $GEXTTESS_INSTALLED/. 48 48 pushd $GEXTTESS_INSTALLED 49 #mkdir tessdata50 49 tar -xvzf tessdata-langs.tar.gz 51 50 rm tessdata-langs.tar.gz 51 mkdir -p tessdata/tessconfigs 52 52 popd 53 54 # Not sure why source package's tessdata didn't get installed in installdir 55 # despite exporting TESSDATA_PREFIX at the start at cascade-make process. 56 cp -r $package$version/tessdata/configs $GEXTTESS_INSTALLED/tessdata/ 57 cp $package$version/tessdata/eng.user-patterns $GEXTTESS_INSTALLED/tessdata/. 58 cp $package$version/tessdata/eng.user-words $GEXTTESS_INSTALLED/tessdata/. 59 cp $package$version/tessdata/tessconfigs/*batch* $GEXTTESS_INSTALLED/tessdata/tessconfigs/. 60 cp $package$version/tessdata/tessconfigs/*demo* $GEXTTESS_INSTALLED/tessdata/tessconfigs/. 61 53 62 54 63 echo "Done installing basic tesseract languages" 55 64 echo "Visit https://github.com/tesseract-ocr/tessdata for a full list of trained language data." 56 echo "To download support for any otherlanguage(s), note the 3 letter code of that language"65 echo "To download support for any specific language(s), note the 3 letter code of that language" 57 66 echo "Go into your $GEXTTESS_INSTALLED/tessdata and for each language run: " 58 echo "wget https://github.com/tesseract-ocr/tessdata/raw/master/<3-letter-lang-code>.traineddata" 67 echo " wget https://github.com/tesseract-ocr/tessdata/raw/master/<3-letter-lang-code>.traineddata" 68 echo "To get all languages currently supported by Tesseract, delete" 69 echo "$GEXTTESS_INSTALLED/tessdata" 70 echo "and in $GEXTTES_INSTALLED run:" 71 echo " git clone https://github.com/tesseract-ocr/tessdata" 59 72 echo ""
Note:
See TracChangeset
for help on using the changeset viewer.