A model container to use with an image analysis request.
Members (3)
get · iOS 18.0+
inputImageFeatureName
TypeScript
get inputImageFeatureName(): string
Swift declaration
var inputImageFeatureName: String
The name of the `MLFeatureValue` that Vision sets from the request handler.
By default, Vision uses the first input found, but you can manually set that input to another `featureName` instead.
set · iOS 18.0+
inputImageFeatureName
TypeScript
set inputImageFeatureName(value: string)
Swift declaration
var inputImageFeatureName: String
The name of the `MLFeatureValue` that Vision sets from the request handler.
By default, Vision uses the first input found, but you can manually set that input to another `featureName` instead.
Creates a model container to use with an image analysis request based on the model you provide.
- Parameters:
- model: The Core ML model on which to base the Vision request.
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.