Training tesseract tesstrain.sh exits with a warning

7 views
Skip to first unread message

Kristóf Horváth

unread,
Jan 31, 2019, 4:08:26 AM1/31/19
to tesseract-ocr

Currently I am trying to make sense of tesseract training and finially after days of diging finially managed to gain access to tesstrain.sh and lstmtraining commands in my cygwin. I was so happy because wiki is no help in setting up training for tesseract, but as soon as i wanted to start doing the minimal with training to have at least a working demo but the sample code from wiki gave me the following error. PLS send help





kh@DSAD-6 /usr/share/tessdata/training
$ tesstrain.sh --fonts_dir /usr/share/fonts/microsoft --lang eng --linedata_only --noextract_font_properties --langdata_dir ~/langdata --tessdata_dir ../tessdata --output_dir ~/tesstutorial/engtrain

=== Starting training for language 'eng'
/usr/bin/language-specific.sh: line 1175: FONTS: unbound variable

Environment

  • Tesseract Version: 4.0.0
  • Platform: Win10 64 (cygwin)

Current Behavior: Confusing af (pls fix wiki, as soon as i can make my demo work i will have to document it so im gonna send it so you guys will be able to have a wiki)

Expected Behavior: run as intended, copied from wiki

Reply all
Reply to author
Forward
0 new messages