Creates a model container to be used with
VNCoreMLRequest based on a Core ML model, with an optional completion handler.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 11.0+
The Core ML model on which to base the Vision request.
An optional block of code to execute after model initialization.
Initialization can fail if the model isn't supported in Vision. For example, Core ML models that don't accept an image as input will fail.
Initializing with a Core ML Model
A container for a Core ML model used with Vision requests.
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