prediction(from:)
Generates a prediction for an image.
Declaration
func prediction(from image: CGImage) throws -> StringParameters
- image:
The image that you want the model to classify.
Return Value
A prediction label for the image.
Generates a prediction for an image.
func prediction(from image: CGImage) throws -> StringThe image that you want the model to classify.
A prediction label for the image.