Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UIImage g8_grayScale]: unrecognized selector sent to instance 0x1c00ad860' #2

Open
Rufy86 opened this issue Aug 16, 2017 · 6 comments

Comments

@Rufy86
Copy link

Rufy86 commented Aug 16, 2017

I've reproduced the app WhichFont using Tesseract Without CocoaPods. The problem is it goes in crash in CameraViewControler File

if let rec = recognition { switch rec { case .grayscale: img = img.g8_grayScale() //<-- here goes in crash an there is a warning that say this method is deprecated case .blackwhite: img = img.g8_blackAndWhite() //here too } }

how Can I fix it?

@gali8
Copy link
Owner

gali8 commented Aug 16, 2017 via email

@Rufy86
Copy link
Author

Rufy86 commented Aug 17, 2017

Thank you for the reference, but I need to see how it work and if work, before to read other documentation. raywenderlich it's great but old. So, when can you fix this bug?

(Grazie mille per la documentazione, ma vorrei prima vedere come funzione e , soprattutto, se funziona la tua app e l'integrazione tra Vision di Apple e Tesseract, prima di leggere altra documentazione. Perciò, quando avrai modo di correggere il bug?)

Thank you

@gali8
Copy link
Owner

gali8 commented Aug 21, 2017

Why do you hate cocoapods? :)

You can replace the img.g8_grayScale() method with https://github.com/gali8/Tesseract-OCR-iOS/wiki/Tips-for-Improving-OCR-Results#using-gpuimages-adaptive-threshold-filter

@Rufy86
Copy link
Author

Rufy86 commented Aug 21, 2017

I hate cocoa pods because insert files without control. but now I've installed cocoapods and I don't know why this method work without problem. maybe is because you create the framework, this don't contains some headers that I find in the framework made by cocoaPods.

@gali8
Copy link
Owner

gali8 commented Aug 21, 2017

Yep => gali8/Tesseract-OCR-iOS#225

@Rufy86
Copy link
Author

Rufy86 commented Aug 21, 2017

however, please make a version or a way to use updated tesseract without cocoapods, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants