Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to initialize engine instance with the following parameters #632

Open
Peter455a opened this issue Jan 29, 2023 · 0 comments
Open

Comments

@Peter455a
Copy link

Peter455a commented Jan 29, 2023

I have downloaded the trained data model for the English language from the official github repository for tesseract ocr and now when creating a new engine for checking if an image contains text then I copied the file "eng.traineddata" to the same path where the executable of the program lives and then I try to instantiate the engine like below with C#

using Tesseract;
//in a button or event handler 
var engine = new Tesserract("eng.traineddata","eng",EngineMode.Default);

Except that it's throwing an error that it cannot instantiate the engine with the provided parameters and I should check this repository(/charlesw) for help. I used the relative path of the trained data file but then am seeing other developers are pointing to a folder with the trained models for almost all languages. I am using the latest version of Tesseract, what am I doing wrong and does someone have a link to the zip file that has the contents of the tessdata folder that I can point to in my program instead of using a relative path?

@Peter455a Peter455a changed the title Unable to create engine instance with the following parameters Unable to initialize engine instance with the following parameters Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant