prediction(from:)
Generates a prediction for each action the classifier recognizes in the video.
Declaration
func prediction(from video: URL) throws -> [MLActionClassifier.Prediction]Parameters
- video:
The location of a video you want the action classifier to analyze.
Return Value
An array of predictions.