Copy eng.traineddata to the framework Resources folder.
This commit is contained in:
1 parent
e5abfa898a
commit
11fb52b090
2 files changed
+18
-1
No files matched your search
@@ -22,7 +22,7 @@ OCRWrapper(const char* lang, const char* base_path) {
|
||||
if (base_path)
|
||||
path = [[NSString stringWithUTF8String:base_path] stringByAppendingString:@"/"];
|
||||
else
|
||||
path = [[[NSBundle mainBundle] bundlePath] stringByAppendingString:@"/Contents/Resources/"];
|
||||
path = [[[NSBundle bundleForClass:[MP42OCRWrapper class]] bundlePath] stringByAppendingString:@"/Versions/A/Resources/"];
|
||||
|
||||
setenv("TESSDATA_PREFIX", [path UTF8String], 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user