One Logo Pool Ball
Vision · IOS API REFERENCE

CoreMLModelContainer

struct · iOS 18.0+ · SDK 27.1

struct CoreMLModelContainer

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.

init · iOS 18.0+

init

TypeScript
static init(model: _CoreML_MLModel, featureProvider?: (SDKHandle) | null): CoreMLModelContainer
Swift declaration
init(model: MLModel, featureProvider: (any MLFeatureProvider)? = nil) throws

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.

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →