gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

g8_blackAndWhite marked as deprecated, but still shown in the example code #225

Closed drshock closed 9 years ago

drshock commented 9 years ago

I noticed this was deprecated today. Since I just got started working with the framework a couple of days ago, it seems then that the Template Framework Project G8ViewController.m should be amended for showing how to use the framework alternatively no?

// Preprocess the image so Tesseract's recognition will be more accurate UIImage *bwImage = [image g8_blackAndWhite];

ws233 commented 9 years ago

An example of binarization is here. But you are right. The Template Framework Project should be changed to avoid using those depricated functions. I'll do it soon.

ws233 commented 9 years ago

I've removed all g8_blackAndWhite function calls from the example. @drshock, thanks for you participation!