SwiftOCR
SwiftOCR copied to clipboard
Does Nothing
I got it installed using Xcode 9 (Build 9A235) via CocoaPods.
I import SwiftOCR as follows:
import SwiftOCR
I have a UIImageView that displays images on the ViewController without issue:
@IBOutlet weak var imageView: UIImageView!
I tried declaring an instance of both in the class and in a method:
let swiftOCRInstance = SwiftOCR()
I have a method I used to do OCR that gets called:
func performOCR() {
// tried this in local scope and class scope
// let swiftOCRInstance = SwiftOCR()
swiftOCRInstance.recognize(imageView.image!) { recognizedString in
print(recognizedString)
}
}
I don't get any errors, not output in console...nothing...it's like a black hole. 🙄🔫
Oops...I take it back...Just looked at CPU usage and it's 100%. I was under the impression this is fast. I let it run for a minute...this is a picture taken with an iPhone, so it's not ginormous.
Same issue, The completion block is never called.