Skip to content

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