boxme Posted October 12, 2015 Posted October 12, 2015 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?
LarsJ Posted October 13, 2015 Posted October 13, 2015 I think you have to copy the files in the tessdata folder to "C:\Program Files\Tesseract\tessdata". Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
boxme Posted October 13, 2015 Author Posted October 13, 2015 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.
LarsJ Posted October 13, 2015 Posted October 13, 2015 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 outputThen you'll see an error like this:Unable to load unicharset file C:\Program Files\Tesseract\tessdata/eng.unicharsetThe error message includes the path where tesseract.exe expect eng.unicharset to be installed. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
boxme Posted October 13, 2015 Author Posted October 13, 2015 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 outputThen you'll see an error like this:Unable to load unicharset file C:\Program Files\Tesseract\tessdata/eng.unicharsetThe error message includes the path where tesseract.exe expect eng.unicharset to be installed.Thank you, this worked perfectly!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now