Contents

init(contentsOf:configuration:inputName:outputName:context:)

Creates an image feature extractor from a CoreML model URL.

Declaration

init(contentsOf url: URL, configuration: MLModelConfiguration, inputName: String = "image", outputName: String, context: CIContext = CIContext()) async throws

Parameters

  • url:

    URL of the .mlmodel file.

  • configuration:

    The model configuration of the CoreML model.

  • inputName:

    The name of the input which the model expects.

  • outputName:

    The name of the output from the model.

  • context:

    The Core Image context.

See Also

Creating the extractor