Creates a model container to be used with VNCoreMLRequest based on a Core ML model.
On This Page
convenience init(model: VNCoreMLModel)
The Core ML model on which to base the Vision request.
Initialization can fail if the model isn't supported in Vision. For example, Core ML models that don't accept an image as input will fail.
init(model: VNCoreMLModel, completionHandler: VNRequestCompletionHandler?)
Creates a model container to be used with VNCoreMLRequest based on a Core ML model, with an optional completion handler.
var model: VNCoreMLModel
The Core ML model on which the request is based, wrapped in a VNCoreMLModel.
A container for a Core ML model used with Vision requests.