Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put eng.cube.lm in xcode 5.0.2

when i add tessdata folder in bundle then generates this error :

/Users/cepl/Desktop/NumberOCR/NumberOCR/tessdata/eng.cube.lm:8: premature EOF Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1

like image 491
Bhavdip Patel Avatar asked Oct 01 '14 12:10

Bhavdip Patel


1 Answers

Make sure you select the "Create folder references" option, when adding the tessdata folder to your project.

From the 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.

Trashing the current folder and adding it again as a folder reference should solve the problem.

like image 121
kanstraktar Avatar answered Nov 14 '22 22:11

kanstraktar