Code Monkey home page Code Monkey logo

Comments (14)

tarungarg avatar tarungarg commented on June 26, 2024 3

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.

ws233 avatar ws233 commented on June 26, 2024 2

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.

kevincon avatar kevincon commented on June 26, 2024 2

@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:

screen shot 2014-10-10 at 1 18 47 pm

from tesseract-ocr-ios.

flooie avatar flooie commented on June 26, 2024

Thank you @kevincon

from tesseract-ocr-ios.

zachberger avatar zachberger commented on June 26, 2024

@golergka, it seems that this is resolved. If not please reopen this issue. Thanks

from tesseract-ocr-ios.

Ithoughts avatar Ithoughts commented on June 26, 2024

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.

ws233 avatar ws233 commented on June 26, 2024

@Ithoughts, That means, that tesseract can not see you traineddata files.
So the reasons could be:

  1. You put them in a wrong folder. The corret place to put is explained above.
  2. You missed some files. There could be more than one file necessary for you language.
  3. 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.

Ithoughts avatar Ithoughts commented on June 26, 2024

@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.

ws233 avatar ws233 commented on June 26, 2024

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.

Ithoughts avatar Ithoughts commented on June 26, 2024

@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.

FattigerTao avatar FattigerTao commented on June 26, 2024

@kevincon thank you.

from tesseract-ocr-ios.

hungnmai avatar hungnmai commented on June 26, 2024

how to the "tessdata" folder has a blue icon

from tesseract-ocr-ios.

Paul95278 avatar Paul95278 commented on June 26, 2024

@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.

jdawg844 avatar jdawg844 commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.