Platforms to show: All Mac Windows Linux Cross-Platform
Back to VNImageRequestHandlerMBS class.
VNImageRequestHandlerMBS.RequestWithCGImage(CGImage as CGImageMBS, orientation as Integer = 0, Options as Dictionary = nil) as VNImageRequestHandlerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
image: A CGImageMBS containing the image to be used for performing the requests. Image content is immutable.
orientation: The orientation of the input image. Pass zero if unknown.
options: An optional dictionary containing VNImageOption keys to auxiliary image data.
VNImageRequestHandlerMBS.RequestWithCIImage(CIImage as Variant, orientation as Integer = 0, Options as Dictionary = nil) as VNImageRequestHandlerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
image: A CIImageMBS containing the image to be used for performing the requests. Image content is immutable.
orientation: The orientation of the input image. Pass zero if unknown.
options: An optional dictionary containing VNImageOption keys to auxiliary image data.
VNImageRequestHandlerMBS.RequestWithCVPixelBuffer(CVPixelBuffer as Variant, orientation as Integer = 0, Options as Dictionary = nil) as VNImageRequestHandlerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
pixelBuffer: A CVPixelBufferMBS containing the image to be used for performing the requests. Buffer contents can't be changed for the lifetime of the request handler.
orientation: The orientation of the input image. Pass zero if unknown.
options: An optional dictionary containing VNImageOption keys to auxiliary image data.
Some examples using this method:
VNImageRequestHandlerMBS.RequestWithData(Data as MemoryBlock, orientation as Integer = 0, Options as Dictionary = nil) as VNImageRequestHandlerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
imageData: Data containing the image to be used for performing the requests. Image content is immutable.
orientation: The orientation of the input image. Pass zero if unknown.
options: An optional dictionary containing VNImageOption keys to auxiliary image data.
The intended use cases of this type of initializer include compressed images and network downloads, where a client may receive a JPEG from a website or the cloud.
VNImageRequestHandlerMBS.RequestWithFile(File as FolderItem, orientation as Integer = 0, Options as Dictionary = nil) as VNImageRequestHandlerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
File: A folderitem pointing to the image to be used for performing the requests. The image must be in a format supported by Image I/O. Image content is immutable.
orientation: The orientation of the input image. pass zero if unknown.
options: An optional dictionary containing VNImageOption keys to auxiliary image data.
VNImageRequestHandlerMBS.RequestWithPicture(Picture as Picture, orientation as Integer = 0, Options as Dictionary = nil) as VNImageRequestHandlerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
image: A Picture containing the image to be used for performing the requests. Image content is immutable.
orientation: The orientation of the input image. Pass zero if unknown.
options: An optional dictionary containing VNImageOption keys to auxiliary image data.
Some examples using this method:
VNImageRequestHandlerMBS.VNImageOptionCameraIntrinsics as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
see
https://developer.apple.com/documentation/vision/vnimageoptioncameraintrinsics?language=objc
VNImageRequestHandlerMBS.VNImageOptionCIContext as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If this key isn't specified, Vision will create its own CIContext.
Specify a CIContextMBS when you've used one in processing an input CIImageMBS or executing a CIFilterMBS chain, so you can save the cost of creating a new context.
VNImageRequestHandlerMBS.VNImageOptionProperties as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS MacFrameworks Plugin.