Comments (3)
+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.
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.
Implemented by #113.
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.