Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 1, 2018 16:17
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 fitomad/c944f6814002b5a4e802d296f6f77f76 to your computer and use it in GitHub Desktop.
Save fitomad/c944f6814002b5a4e802d296f6f77f76 to your computer and use it in GitHub Desktop.
private func handleModelRequest(request: VNRequest, forIndex index: Int) -> Void
{
guard let results = request.results as? [VNClassificationObservation],
let observation = results.first,
let digit = Int(observation.identifier)
else
{
return
}
///
print("La imagen es un \(digit)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment