Dipin Narayanan
Dipin Narayanan

Reputation: 1105

Getting error: "bad read of inttemp!" when training a new font in Tesseract 2

I'm trying to train Tesseract for a new font which can be used in my Android app. I need to train for digits only, so I had created one training image, box file and unicharset file.

I have followed the training instructions, but when I tried to run tesseract it says, bad read of inttemp!.

What am I doing wrong? How can I diagnose this error?

Upvotes: 21

Views: 1078

Answers (1)

user1987371
user1987371

Reputation:

http://code.google.com/p/tesseract-ocr/issues/detail?id=155

Turns out, tesseract was still going back to the "C:\Program Files\Tesseract-OCR" folder - including using the 3.0 training exes within the training folder there. It made no difference where I was running the command from - guess tesseract ignores that when it has a path variable.

Replaced all of the 3.0 exe and training files in that folder. Dropped in the 2.0.4 files and the extract command worked!!! I should have solved the problem faster for all sorts of reasons, but..

try this

http://www.win.tue.nl/~aeb/linux/ocr/tesseract.html

Upvotes: 1

Related Questions