tesseract-ocr / tesstrain

Train Tesseract LSTM with make
Apache License 2.0
599 stars 178 forks source link

Failed training on both Linux WSL and Windows #349

Closed kelvinyee00 closed 10 months ago

kelvinyee00 commented 10 months ago

Hi,

I want to train a new font and was initially trying to train on windows purely but I hit a wall on that. I built the tesseract from source and I have also read through the tesstrain README and have as far as I am concerned installed all the prerequisites and place the ground-truth in the correct directory. However, I kept getting the same error over and over. Below is the error i faced in cmd. windows

Here is my directory of the ground-truth folder image

I was lost so i tried out another way which is to use WSL and built everything again from scratch. Unfortunately, the same exact error occurs there as well. I really don't know how to proceed further. Please someone here please give me some guidance. I would really appreciate it. linux

stefan6419846 commented 10 months ago

Unfortunately, the same exact error occurs there as well.

Where do you see the same error? The error on WSL is related to a missing shared object, while the Windows issue is completely different? The other lines are just the actual commands run by the Makefile.

kelvinyee00 commented 10 months ago

I am sorry I didn't notice they were different errors. That's my bad. Anyways, do you have any suggestions on your side to get it running on both methods if possible. I am keen to know why and how this works. Thank you very much for your replies

zdenop commented 10 months ago

Follow instructions on https://github.com/tesseract-ocr/tesstrain/blob/main/README.md with example data, and pay attention to each error (make could fail later after error). If sample data training works, try your data...