Open Rufy86 opened 7 years ago
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 notifications@github.com 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.
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?