-
Notifications
You must be signed in to change notification settings - Fork 17
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
Comments
For first you can look into this page https://www.raywenderlich.com/93276/implementing-tesseract-ocr-ios
Also, those methods are removed so you can use GPUImage that is more fast.
Follow this wiki page https://github.com/gali8/Tesseract-OCR-iOS/wiki/Tips-for-Improving-OCR-Results
Daniele Galiotto | www.nexor.it
… Il giorno 16 ago 2017, alle ore 19:43, Rufy86 ***@***.***> ha scritto:
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 and there is a warning:'g8_grayScale()' is deprecated: This method is no longer supported as a part of Tesseract-OCR-iOS
case .blackwhite:
img = img.g8_blackAndWhite() <--- here too warning 'g8_blackAndWhite()' is deprecated: This method is no longer supported as a part of Tesseract-OCR-iOS
}
}`
how Can I fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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 |
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 |
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. |
Yep => gali8/Tesseract-OCR-iOS#225 |
however, please make a version or a way to use updated tesseract without cocoapods, thanks |
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?
The text was updated successfully, but these errors were encountered: