-
Notifications
You must be signed in to change notification settings - Fork 948
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
setenv("TESSDATA_PREFIX", [_absoluteDataPath stringByAppendingString:@"/"].fileSystemRepresentation, 1); _absoluteDataPath is Nil, doesnt work in iOS 12 #392
Comments
+1 |
This also gives EXC_BAD_ACCESS if tessdata is not found. |
Simple fix will be: `
` |
I am having the same issue and the fixes above did not work on iOS 12.1.4? Any luck making it run ? it worked on iOS 10.3.1 simulator |
Same problem here. To be honest I didn't really look at the documentation nor spent some time on the project, but i'm a bit surprised the demo app does not even run and crashes. |
this is how I fixed it . if (absoluteDataPath != nil) {
[self moveTessdataToDirectoryIfNecessary:absoluteDataPath];
_absoluteDataPath = absoluteDataPath.copy;
} else { absoluteDataPath = @""; }
_configDictionary = configDictionary;
_configFileNames = configFileNames;
setenv("TESSDATA_PREFIX", [_absoluteDataPath stringByAppendingString:@"/"].fileSystemRepresentation, 1); |
I think G8Tesseract.mm file line 168 is sending the method stringByAppendingString to a nil object .
i changed the code like this and it worked :
if (absoluteDataPath != nil) { [self moveTessdataToDirectoryIfNecessary:absoluteDataPath]; } else { absoluteDataPath = @""; }
The text was updated successfully, but these errors were encountered: