Page 1 of 1

tesseract-2.04

Posted: Wed 22 Sep 2010, 04:50
by Vino
I tried installing tesseract-2.04
where I get the following error when running the command
tesseract phototest.tif output

Bad read of inttemp!
Bad read of inttemp!
Error: -1210211104 classes in inttemp while unicharset contains 112 unichars.

Please help me out.
Thanks

tesseract help

Posted: Wed 22 Sep 2010, 13:08
by ndujoe1
It is not broken I forgot to post that you need to move the tesseract location from /local/tessearct to /usr/local/tesseract. Then you will be able reference it from the command line. It works well on my machine.

Since tesseract will only operate with uncompressed TIFF files you need just a few extra steps to achieve compatiblity with xsane.

goto : click Preferences --> Setup --> Filetype

for the TIFF options

Set compression rate to 1

in the next three TIFF dialong boxes select no compression.

clock OK

click Preferences again and select SAVE settings.

When scanning a file for OCR in the XSANE menu I select type :TIFF

color : gray
enter 300 for scan resoultion

And save the filename with extention .tif not .tiff.

Then when finished you invoke tesseract from the command line with

tesseract filename.tif outputname