当我在包中添加 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:
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/