Tesseract-OCR-iOS icon indicating copy to clipboard operation
Tesseract-OCR-iOS copied to clipboard

Mac OSX support

Open zeasy opened this issue 11 years ago • 10 comments

zeasy avatar Apr 25 '14 10:04 zeasy

I have same question ! If not, why not? I think it should because it is present in cocapods

diimdeep avatar Jul 08 '14 09:07 diimdeep

You are free to port it to mac and provide a pull request with your changes.

ws233 avatar Oct 01 '14 06:10 ws233

is any tutorial or examples exist, how port to mac?

3a4oT avatar Dec 02 '14 13:12 3a4oT

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

zachberger avatar Dec 02 '14 18:12 zachberger

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?

ws233 avatar Jan 05 '15 20:01 ws233

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?

kevincon avatar Jan 05 '15 20:01 kevincon

Yup. It's better to postpone this for a while.

ws233 avatar Jan 05 '15 20:01 ws233

any news for Mac OS X support?

Or could someone give me a hint, for getting tesseract in my OS X project?

mseel avatar Dec 23 '16 07:12 mseel

@mseel if you have homebrew, you can install tesseract as a command line option: brew install tesseract --all-languages

tiagosiebler avatar Mar 01 '17 14:03 tiagosiebler

watch this and expect good news for a long time

Nododo avatar Nov 20 '19 06:11 Nododo