Hi,
on this page:
https://developer.apple.com/documentation/vision/vnrecognizeanimalsrequest/3366120-knownanimalidentifiers
it is stated that this function: "Returns a list of animal identifiers the recognition algorithm supports for the specified revision."
How can i build a test code in playground to get that list of animals identifier?
What is the general methodology to run such functions from the documentation?
on this page:
https://developer.apple.com/documentation/vision/vnrecognizeanimalsrequest/3366120-knownanimalidentifiers
it is stated that this function: "Returns a list of animal identifiers the recognition algorithm supports for the specified revision."
How can i build a test code in playground to get that list of animals identifier?
What is the general methodology to run such functions from the documentation?
The documentation says it is a throws class-method, taking a single parameter forRevision: of type Int,How can i build a test code in playground to get that list of animals identifier?
defined in the framework Vision:
Code Block import Vision do { let identifiers = try VNRecognizeAnimalsRequest.knownAnimalIdentifiers(forRevision: VNRecognizeAnimalsRequest.defaultRevision) print(identifiers) //->[__C.VNAnimalIdentifier(_rawValue: Cat), __C.VNAnimalIdentifier(_rawValue: Dog)] } catch { print(error) }
Better learn the basics of the Swift language.What is the general methodology to run such functions from the documentation?