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

No Output String #172

Open
junaidxabd opened this issue Sep 22, 2019 · 4 comments
Open

No Output String #172

junaidxabd opened this issue Sep 22, 2019 · 4 comments

Comments

@junaidxabd
Copy link

I'm not getting any output string. My code is below

    @IBAction func takePhoto(_ sender: Any) {
        
        imagePicker =  UIImagePickerController()
        imagePicker.delegate = self
        imagePicker.sourceType = .camera
        
        present(imagePicker, animated: true, completion: nil)
        
        
    }
    
    
    func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
        imagePicker.dismiss(animated: true, completion: nil)
        imageView.image = info[.originalImage] as? UIImage
        myImage = (info[.originalImage] as? UIImage)!
        
  
    }
    
    
    @IBAction func btnTapped(_ sender: Any) {
        print("Btn tapped")
        
        swiftOCRInstance.recognize(myImage) { recognizedString in
           // print(self.myImage)
            print(recognizedString)
         //   self.outputLbl.text = recognizedString
        }
    
    }
    
@dheeraj447
Copy link

Junaid how have you converted to swift 5. Can you help me out. I'm stuck

@junaidxabd
Copy link
Author

I didn’t convert to swift 5

@dheeraj447
Copy link

Which version of swift are you using?

@dheeraj447
Copy link

It doesnt support for my 4.2

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