Instance Property


An optional object to support inputs outside Vision.


@property(readwrite, nonatomic, strong) id<MLFeatureProvider> featureProvider;


This optional object conforms to the MLFeatureProvider protocol that the model uses to predict inputs that are not supplied by Vision. Vision provides the MLModel with the image for the inputImageFeatureName via the VNRequestHandler.

A feature provider is necessary for models that have more than one required input. Models with only one image input won't use the feature provider.

See Also

Providing Features


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


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