gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 04:08:12 29 4
gpt4 key购买 nike

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

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com