Code Monkey home page Code Monkey logo

Comments (5)

ws233 avatar ws233 commented on July 25, 2024

@flysofast you can try specifying nil path while initializing tesseract, like follows:
[tesseract initPrivateWithDataPath:nil
language:@"eng"
engineMode:yourModeHere];
the function is private. so perhaps you could add its declaration into .h file of your fork.

from tesseract-ocr-ios.

ws233 avatar ws233 commented on July 25, 2024

@flysofast, sorry for misspelling. instead of the nil, you should specify NOT nil. you should specify the exact pass to the traineddata folder inside the user Documents folder.

from tesseract-ocr-ios.

kevincon avatar kevincon commented on July 25, 2024

That exposes the private method, which isn't ideal. We should work to come up with a public method that achieves this functionality. The other thing needed in @ws233's suggestion is to also expose the private property dataPath and set it to the location you want. But I don't understand why the public method was deprecated before, so we need to investigate why that wasn't working as a solution.

from tesseract-ocr-ios.

ws233 avatar ws233 commented on July 25, 2024

There was no special reason as I remember.
I just added a code, which allows to init tes without copying data into the Documents folder. And that was the way it worked in the ealier beginning.
So after I added the code, G8 marked the method as deprecated and than even removed it from the header.
But the code seems to work correctly, so I think we could easely move it back to the header.

And as @kevincon already said, the method is not ideal and its name is ugly, so should be cleaned and renamed.

So far, I'm in process of adding initial time configs to the tes. A bit later, I'm going to make this function public as well.

from tesseract-ocr-ios.

kevincon avatar kevincon commented on July 25, 2024

This issue is resolved by the new functionality in #113. See the bottom of this page in the Wiki for information about how to use it: https://github.com/gali8/Tesseract-OCR-iOS/wiki/Advanced-Tesseract-Configuration

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.