VNCoreMLRequest
An image-analysis request that uses a Core ML model to process images.
Declaration
class VNCoreMLRequestOverview
The results array of a Core ML-based image analysis request contains a different observation type, depending on the kind of MLModel object you use:
If the model predicts a single feature, the model’s modelDescription object has a non-
nilvalue for predictedFeatureName and Vision treats the model as a classifier. The results are VNClassificationObservation objects.If the model’s outputs include at least one output with a feature type of MLFeatureType.image, Vision treats that model as an image-to-image model. The results are VNPixelBufferObservation objects.
Otherwise, Vision treats the model as a general predictor model. The results are VNCoreMLFeatureValueObservation objects.