Contents

prediction(from:)

Generates a hand pose prediction for an image.

Declaration

func prediction(from image: URL) throws -> [(label: String, confidence: Double)]

Parameters

  • image:

    An image file URL.

Return Value

An array of prediction tuples.

Discussion

Each prediction consists of an array of tuples that pair a classification label with the model’s confidence in that label.

See Also

Testing a hand pose classifier