init(model:inputName:outputName:context:)
Creates an image feature extractor from a CoreML model.
Declaration
init(model: MLModel, inputName: String = "image", outputName: String, context: CIContext = CIContext()) throwsParameters
- model:
The CoreML model which will be used for feature extraction.
- inputName:
The name of the input which the
modelexpects. - outputName:
The name of the output from the
model. - context:
A Core Image context.