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

Set absoluteDataPath properly before configuring the engine #410

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsenerol
Copy link

@rsenerol rsenerol commented Jul 9, 2019

When using the initializer initWithLanguage:configDictionary:configFileNames:absoluteDataPath: engineMode:) the property absoluteDataPath was not properly set, with the value passed as param, before configuring the engine. This would raise/print the error "ERROR! Can't init Tesseract engine." and not find the tessdata folder.

The fix makes sure that the property absoluteDataPath is correctly set with the value passed in the init and not the default value (main bundle).

@rsenerol
Copy link
Author

rsenerol commented Jul 9, 2019

Seems like this issue was already opened here #394

@rsenerol rsenerol changed the base branch from 5.0.1 to master July 10, 2019 14:53
@horseshoe7
Copy link

I’m also having this problem. Does this fix work? The tests above failed?

@horseshoe7
Copy link

I find that until this fix can be merged into the main branch, an easier workaround is to initialize with language = "", then immediately afterwards, set the language to what you want it to be.

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

Successfully merging this pull request may close these issues.

2 participants