SwiftOCR icon indicating copy to clipboard operation
SwiftOCR copied to clipboard

Does Nothing

Open AdrianBinDC opened this issue 6 years ago • 2 comments

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. 🙄🔫

AdrianBinDC avatar Oct 16 '17 21:10 AdrianBinDC

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.

AdrianBinDC avatar Oct 16 '17 21:10 AdrianBinDC

Same issue, The completion block is never called.

ccosnean avatar Jan 24 '18 11:01 ccosnean