Created
September 15, 2017 16:01
-
-
Save gali8/27dc1fa4e947c3180d0944bd7f6853ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MARK: - UIImagePickerControllerDelegate | |
func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { | |
picker.dismiss(animated: true, completion: nil) | |
} | |
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { | |
picker.dismiss(animated: true, completion: nil) | |
guard let image = info["UIImagePickerControllerOriginalImage"] as? UIImage else { | |
return | |
} | |
self.predictImage(image: image) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment