Tesseract-OCR-iOS
Tesseract-OCR-iOS copied to clipboard
Mac OSX support
I have same question ! If not, why not? I think it should because it is present in cocapods
You are free to port it to mac and provide a pull request with your changes.
is any tutorial or examples exist, how port to mac?
tesseract-ocr the upstream c++ library and engine is supported on Mac and is available in macports. A discussion on why this project, an obj-c wrapper, currently doesn't work is being held on #60
If we add a mac support, we should change the name of the repo to something like TesseractOCR-objC. Also, it seems it will take a lot of efforts to port this to mac, but we can try this.
And if we start this, how we should do it? Use the same code, but insert a lot of define switches like #ifdef target_macos #elseif target_ios #endif or use different projects for iOS/mac?
Yeah OSX uses AppKit and iOS uses UIKit which seem to use different things for the same name.
For example, UIImage on iOS is actually NSImage on OSX. :(
We could potentially use a #define to create platform-independent strings for some of the incompatibilities. For the image example, we could make #define TESSERACT_IMAGE which could map to NSImage for OSX and UIImage on iOS, then update all the methods to use that.
There might be more severe API incompatibilities we will uncover if we start to do the transition. I think we should wait to work on this until the 4.0.0 release is done so that we have a more stable API to work with before we start analyzing the differences in the two platforms. What do you think?
Yup. It's better to postpone this for a while.
any news for Mac OS X support?
Or could someone give me a hint, for getting tesseract in my OS X project?
@mseel if you have homebrew, you can install tesseract as a command line option: brew install tesseract --all-languages
watch this and expect good news for a long time