tesstrain.sh Error December 2020 (Tesseract 5.0.0-alpha-855-g6d86, Ubuntu 18.04)

221 views
Skip to first unread message

Killua Zaoldyeck

unread,
Dec 22, 2020, 2:51:07 PM12/22/20
to tesseract-ocr
Hi Everyone,

I am a newbie in tesseract-ocr, to increase OCR accuracy, I need to train Tesseract OCR Best Model with specific font, so I follow this instruction using docker environment :

https://github.com/artdevgame/tesseract-trainer

Docker environment was built successfully But, when I try to run the docker using this command :
> docker-compose up

Some error occur (see error.png), 
train-ocr | === Starting training for language 'eng'
train-ocr | [Tue 22 Dec 09:56:29 UTC 2020] /usr/local/bin/text2image --fonts_dir=/app/src/fonts --ptsize 12 --font=Euphemia --outputbase=/tmp/font_tmp.HxWnwCr9FZ/sample_text.txt --text=/tmp/font_tmp.HxWnwCr9FZ/sample_text.txt --fontconfig_tmpdir=/tmp/font_tmp.HxWnwCr9FZ
train-ocr | /usr/local/bin/text2image: error: '/usr/local/bin/.libs/text2image' does not exist
train-ocr | This script is just a wrapper for text2image.
train-ocr | See the libtool documentation for more information.
train-ocr | ERROR: Program text2image failed. Abort.
train-ocr | /usr/local/bin/combine_tessdata: error: '/usr/local/bin/.libs/combine_tessdata' does not exist
train-ocr | This script is just a wrapper for combine_tessdata.
train-ocr | See the libtool documentation for more information.
train-ocr | /usr/local/bin/lstmeval: error: '/usr/local/bin/.libs/lstmeval' does not exist
train-ocr | This script is just a wrapper for lstmeval.
train-ocr | See the libtool documentation for more information.
train-ocr | /usr/local/bin/lstmtraining: error: '/usr/local/bin/.libs/lstmtraining' does not exist
train-ocr | This script is just a wrapper for lstmtraining.
train-ocr | See the libtool documentation for more information.
train-ocr | /usr/local/bin/lstmtraining: error: '/usr/local/bin/.libs/lstmtraining' does not exist
train-ocr | This script is just a wrapper for lstmtraining.
train-ocr | See the libtool documentation for more information.
train-ocr | /usr/local/bin/lstmeval: error: '/usr/local/bin/.libs/lstmeval' does not exist
train-ocr | This script is just a wrapper for lstmeval.
train-ocr | See the libtool documentation for more information.
train-ocr exited with code 1



It causes by dir /usr/local/bin/.libs/[package_name] doesn't exists.
Fyi, I am using Tesseract v.5.0.0 (see version.png),

Please help me, 
Thanks in advance. 
error.PNG
version.PNG

Killua Zaoldyeck

unread,
Dec 27, 2020, 8:17:26 AM12/27/20
to tesseract-ocr
Hi Everyone,

It already solved, the root cause is because of some missing command in Makefile.am,

Really thankful someone has the same problem and the maintainer does some quick fix (I think this is the consequence of using a pre-release build).
Thank you
Reply all
Reply to author
Forward
0 new messages