ios - 如何将 eng.cube.lm 放入 xcode 5.0.2

标签 ios objective-c iphone

当我在包中添加 tessdata 文件夹时会生成此错误:

/Users/cepl/Desktop/NumberOCR/NumberOCR/tessdata/eng.cube.lm:8: 过早的 EOF 命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex 失败,退出代码为 1

最佳答案

确保在将 tessdata 文件夹添加到项目时选择“创建文件夹引用”选项。

来自documentation :

NOTE: This library currently requires the tessdata folder to be linked as a referenced folder instead of a symbolic group. If Tesseract can't find a language file in your own project, it's probably because you created the tessdata folder as a symbolic group instead of a referenced folder. It should look like this if you did it correctly:

enter image description here

Note how the tessdata folder has a blue icon, indicating it was imported as a referenced folder instead of a symbolic group.

删除当前文件夹并将其重新添加为文件夹引用应该可以解决问题。

关于ios - 如何将 eng.cube.lm 放入 xcode 5.0.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26141929/

相关文章:

Objective-C performSelectorInBackground - 调用的方法在哪里运行?

ios - 如何在 Restkit 中设置 header 值

ios - 如何添加设备开关位置服务的Observer

ios - 从自定义转换中引用 presentingViewController

iphone - 容器 div 的自适应 CSS

ios - TWTRLogInButton(推特登录按钮)设置标题导致文字重叠

ios - UILabel字体需要花费时间才能更新

iphone - 你能在 Cocoa Touch 中获得系统接听电话按钮吗?

iPhone 5s 相机校准参数

ios - 从嵌入在 UINavigationController 中的一个 View Controller 转到另一个 UINavigationController