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 |
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.
- 2 properties
- property imageCropAndScaleOption as Integer
- property model as VNCoreMLModelMBS
- method Constructor(model as VNCoreMLModelMBS, DelegateHandler as VNRequestCompletedMBS = nil, tag as variant = nil)
- 3 constants
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
- property regionOfInterest as CGRectMBS
- method Constructor Private
Super class VNRequestMBS
- 6 properties
- property className as String
- property ClassPath as String
- property Handle as Integer
- property preferBackgroundProcessing as Boolean
- property revision as Integer
- property usesCPUOnly as Boolean
- 4 methods
- method cancel
- method Constructor Private
- method copy as VNRequestMBS
- method results as VNObservationMBS()
- 3 shared methods
- shared method currentRevision as Integer
- shared method defaultRevision as Integer
- shared method supportedRevisions as NSIndexSetMBS
This class has no sub classes.
Blog Entries
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
VNCoreMLModelMBS - VNDetectBarcodesRequestMBS