Contents

prediction(from:)

Generates a prediction for an image.

Declaration

func prediction(from image: CGImage) throws -> String

Parameters

  • image:

    The image that you want the model to classify.

Return Value

A prediction label for the image.

See Also

Testing an image classifier