Code Monkey home page Code Monkey logo

Comments (3)

kevincon avatar kevincon commented on July 25, 2024

+1. I think this is something the library really needs (it was also indirectly asked for in #45).

Among other things, it would let users provide a file with regexes for specific patterns Tesseract should try to recognize (e.g. license plates, phone numbers, etc.).

I looked into adding support for this myself a while back, and this is the relevant C++ function to call http://zdenop.github.io/tesseract-doc/classtesseract_1_1_tess_base_a_p_i.html#a96899e8e5358d96752ab1cfc3bc09f3e, but I got confused about how to map the C++ types to Objective C types. Anyway, this is where we currently call Init() in the code, but we're calling an overloaded version with fewer arguments: https://github.com/gali8/Tesseract-OCR-iOS/blob/master/TesseractOCR/Tesseract.mm#L119. For inspiration, this is how the actual tesseract binary calls Init() with parameters: https://code.google.com/p/tesseract-ocr/source/browse/api/tesseractmain.cpp#180

School gets out in two weeks, so I'll try to take a look at adding support for this then, but anyone else should feel free to take a crack at it too.

from tesseract-ocr-ios.

zachberger avatar zachberger commented on July 25, 2024

I'm doing some development over on my branch called init. b61b974 is my first swing at an implementation, but it still needs testing.

The next step in creating API parity after having the variables configurable at runtime in-code, is to have the variables stored in a config file.

from tesseract-ocr-ios.

kevincon avatar kevincon commented on July 25, 2024

Implemented by #113.

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.