Jump to content

Recommended Posts

Posted

I'm trying to get Tesseract to work using the example script here: https://www.autoitscript.com/forum/topic/174483-tesseract-simple-example/ Downloading the script and running it with the example image just gives me a blank readout. Someone else had the same problem here: https://www.autoitscript.com/forum/topic/174476-single-dll-file-for-ocr/#comment-1263034 but doesn't provide an explanation of how they fixed it. Has anyone else experienced this problem and know of a fix? 

Posted

I think you have to copy the files in the tessdata folder to "C:\Program Files\Tesseract\tessdata".

Posted

I think you have to copy the files in the tessdata folder to "C:\Program Files\Tesseract\tessdata".

Tried creating a folder there and copying the data but it's still showing a blank readout when I run it. 

Posted

It does not have to be "C:\Program Files". It depends on your Windows version. I tested on my old XP.

Open a "Command Prompt" in the folder where you have unpacked TesseractExample.zip. The folder where tesseract.exe is located.

Run this command (with your own path):

C:\WINDOWS\Temp\AutoIt\Tesseract\TesseractExample>tesseract.exe image.bmp output

Then you'll see an error like this:

Unable to load unicharset file C:\Program Files\Tesseract\tessdata/eng.unicharset

The error message includes the path where tesseract.exe expect eng.unicharset to be installed.

Posted

It does not have to be "C:\Program Files". It depends on your Windows version. I tested on my old XP.

Open a "Command Prompt" in the folder where you have unpacked TesseractExample.zip. The folder where tesseract.exe is located.

Run this command (with your own path):

C:\WINDOWS\Temp\AutoIt\Tesseract\TesseractExample>tesseract.exe image.bmp output

Then you'll see an error like this:

Unable to load unicharset file C:\Program Files\Tesseract\tessdata/eng.unicharset

The error message includes the path where tesseract.exe expect eng.unicharset to be installed.

Thank you, this worked perfectly!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...