Contents

init(model:)

Creates a model container to use with an image analysis request based on the model you provide.

Declaration

convenience init(model: VNCoreMLModel)

Parameters

  • model:

    The Coreml model on which to base the Vision request.

Discussion

Initialization can fail if the Core ML model you provide isn’t supported in Vision, such as if the model doesn’t accept an image as input.

See Also

Initializing with a Core ML Model