-
-
Save fitomad/c944f6814002b5a4e802d296f6f77f76 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
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