Platforms to show: All Mac Windows Linux Cross-Platform

VNCoreMLRequestMBS class

Super class: VNImageBasedRequestMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
An image analysis request that uses a Core ML model to process images.

The results array of a Core ML-based image analysis request contains a different observation type depending on the kind of MLModel object you create the request with:

  • If the model predicts a single feature (that is, the model's modelDescription object has a non-nil value for its predictedFeatureName property), Vision treats that model as a classifier: the results are VNClassificationObservationMBS objects.
  • If the model's outputs include at least one output whose feature type is MLFeatureTypeImage, Vision treats that model as an image-to-image model: the results are VNPixelBufferObservationMBS objects.
  • Otherwise, Vision treats the model as a general predictor model: the results are VNCoreMLFeatureValueObservationMBS objects.
Subclass of the VNImageBasedRequestMBS class.

Crop and Scale options

Constant Value Description
VNImageCropAndScaleOptionCenterCrop 0 A scaling option that maintains aspect ratio to fit the short side, and crops the centered image on its long side.
VNImageCropAndScaleOptionScaleFill 2 A scaling option that scales an image proportionally so that its shorter dimension fills the canvas, potentially cropping along the longer dimension.
VNImageCropAndScaleOptionScaleFit 1 An option that scales an image to fit the input image dimensions while maintaining aspect ratio. more

Super class VNImageBasedRequestMBS

Super class VNRequestMBS

This class has no sub classes.

Blog Entries


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


VNCoreMLModelMBS   -   VNDetectBarcodesRequestMBS


The biggest plugin in space...