Copy eng.traineddata to the framework Resources folder.

This commit is contained in:
Damiano Galassi committed 2013-12-02 10:17:14 +01:00
1 parent e5abfa898a
commit 11fb52b090
2 files changed
+18 -1

No files matched your search

+1 -1
View File
@@ -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);