Skip to content

Instantly share code, notes, and snippets.

@bourdakos1
Last active April 16, 2018 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bourdakos1/219c373325d02181f36a255b964f20f2 to your computer and use it in GitHub Desktop.
Save bourdakos1/219c373325d02181f36a255b964f20f2 to your computer and use it in GitHub Desktop.
let classifierID = "your-classifier-id"
let failure = { (error: Error) in print(error) }
let image = UIImage(named: "your-image-filename")
visualRecognition.classifyWithLocalModel(image: image, classifierIDs: [classifierID], failure: failure) {
classifiedImages in print(classifiedImages)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment