Open junaidxabd opened 4 years ago
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 } }
Junaid how have you converted to swift 5. Can you help me out. I'm stuck
I didn’t convert to swift 5
Which version of swift are you using?
It doesnt support for my 4.2
I'm not getting any output string. My code is below