predictions(from:)
Generates an array of hand pose predictions for each image in a URL array.
Declaration
func predictions(from images: [URL]) throws -> [[(label: String, confidence: Double)]]Parameters
- images:
An array of image file URLs.
Return Value
An array of a prediction tuple arrays.
Discussion
Each prediction consists of an array of tuples that pair a classification label with the model’s confidence for that label. The method returns an array of prediction arrays, where each element of the outer array is the prediction for the corresponding URL element in images.