Class

VNCoreMLModel

A container for a Core ML model used with Vision requests.

Declaration

@interface VNCoreMLModel : NSObject

Overview

A Core ML model encapsulates the information trained from a data set used to drive Vision recognition requests. See Getting a Core ML Model for instructions on training your own. Once you have the trained model, use this class to initialize a VNCoreMLRequest for identification.

Topics

Initializing a Model

+ modelForMLModel:error:

Creates a model container to be used with VNCoreMLRequest.

Providing Features

featureProvider

An optional object to support inputs outside Vision.

Beta
inputImageFeatureName

The name of the MLFeatureValue that Vision sets from the request handler.

Beta

Relationships

Inherits From

See Also

Initializing with a Core ML Model

- initWithModel:

Creates a model container to be used with VNCoreMLRequest based on a Core ML model.

- initWithModel:completionHandler:

Creates a model container to be used with VNCoreMLRequest based on a Core ML model, with an optional completion handler.

model

The Core ML model on which the request is based, wrapped in a VNCoreMLModel.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software