tesstrain help needed - failed to continue

34 views
Skip to first unread message

Keith Smith

unread,
Oct 20, 2023, 12:54:37 AM10/20/23
to tesseract-ocr
Hi, thanks in advance for your help.

I am trying to use tesstrain to train tesseract to read the MICR line of checks, but am getting a "failed to continue" error as described below.  Perhaps I am misunderstanding how to use tesstrain.

Here is my data directory in my tesstrain directory:

data

├── micr-ground-truth

│   ├── micr-1.gt.txt

│   ├── micr-1.tif

│   ├── micr-2.gt.txt

│   └── micr-2.tif

└── micr_ref-ground-truth

    ├── micr_ref.gt.txt

    └── micr_ref.tif

And then I run the following 3 commands:

    gmake tesseract-langdata

    gmake proto-model MODEL_NAME=micr_ref

    gmake training MODEL_NAME=micr START_MODEL=micr_ref

The final command to train the micr model fails quickly with the following error:

       Failed to continue from: data/micr_ref/micr.lstm

Can someone tell what I am doing wrong?

BTW, I've attached data.zip.  To reproduce, just unzip it in the tesstrain directory and run the 3 commands mentioned above.

Thanks,

Keith

Reply all
Reply to author
Forward
0 new messages