Comments (14)
Download eng.traineddata from Google
$ wget https://tesseract-ocr.googlecode.com/files/eng.traineddata.gz
Then just move it into the ../tessdata/
$ gunzip eng.traineddata.gz
$ sudo mv -v eng.traineddata ../tessdata/
from tesseract-ocr-ios.
Did you check the path and a file, which you told about?
It seems, the file is located in a wrong path or corrupted.
from tesseract-ocr-ios.
@golergka, I experienced this issue as well, and it was because my "tessdata" folder was a symbolic group in Xcode instead of a referenced folder. You'll know if you have it right if the "tessdata" folder has a blue icon. It won't work if the icon is a yellow folder.
Here's a screenshot of what your project structure should look like:
from tesseract-ocr-ios.
Thank you @kevincon
from tesseract-ocr-ios.
@golergka, it seems that this is resolved. If not please reopen this issue. Thanks
from tesseract-ocr-ios.
I go through the same error 'Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.' When I try to change the eng.traineddata to chi_sim.traineddata.What the mistake I have made?
from tesseract-ocr-ios.
@Ithoughts, That means, that tesseract can not see you traineddata files.
So the reasons could be:
- You put them in a wrong folder. The corret place to put is explained above.
- You missed some files. There could be more than one file necessary for you language.
- You chose wrong version of traineddata files. The current tesseract core version is 3.0.x. That means you should try the same version of traineddata files.
Pls, check all the above and let us know if that's fixed your issue.
from tesseract-ocr-ios.
@ws233 I have put them in a right folder and chose the right version of traineddata files.As you concerned,'You missed some files. There could be more than one file necessary for you language.',I wonder what files I have missed,what files are necessary?How to generate the indeed files?Thanks!
from tesseract-ocr-ios.
There is a very detailed page about training tesseract: https://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3. But before you jump into this, could you provide your traineddata files, specify the path, where you put them and show a code snippet, which you use to run tesseract?
from tesseract-ocr-ios.
@ws233 I just put the chi_sim.traineddata into the tessdata file,but its recognition is horrible.how can I improve the recognition of Chinese?What can I do ?Please give me a detailed tip,thanks a lot!
from tesseract-ocr-ios.
@kevincon thank you.
from tesseract-ocr-ios.
how to the "tessdata" folder has a blue icon
from tesseract-ocr-ios.
@Ithoughts I have the same problem as you now, have you worked out it,? So, could you give me some advices, thanks!
from tesseract-ocr-ios.
how do you move the eng.traineddata to tessdata on mac OS?
i have tessdata and eng.traineeddata but i get this result.
"mv: rename eng.traineddata to ../tessdata/: No such file or directory"
from tesseract-ocr-ios.
Related Issues (20)
- .
- User-Words file not loaded: Error: failed to load user-words HOT 5
- doesn't work with 64bpp images
- pod failed HOT 1
- Does not detects images 100%
- What's means with *.cube.* ? e.g. eng.cube.fold
- Why does the testsdata folder exist in the project? HOT 2
- Why don't we upgrade to the latest Tesseract?
- cocoapods 5.0.1 error
- Xcode 12.0.1 build is failing when trying to run it on the simulator. HOT 2
- RecognitionQuestion
- Apple Silicon (arm64; M1) support HOT 2
- Thread 1: EXC_BAD_ACCESS (code=1, address=0x163940000)
- Framework not found for Mac OS HOT 1
- 你好 这句一定闪退
- PDF creation not working
- self.tesseract!.recognize() is crashing in Acuant MRZ
- How to update Tesseract version
- Target 'TesseractOCRiOS' (project 'Pods') has copy command HOT 1
- cannot load language 'eng' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesseract-ocr-ios.