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
Creates a handler to be used for performing requests on a Core Graphics image.

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
Creates a handler to be used for performing requests on CIImage data.

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
Creates a handler to be used for performing requests on a Core Video pixel buffer of a known orientation.

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
Creates a handler to be used for performing requests on an image, contained in a memoryblock.

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
Creates a handler to be used for performing requests on an image, at the specified folderitem.

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
Creates a handler to be used for performing requests on a picture.

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
An option to specify the camera intrinstics as an MemoryBlock object representing a matrix_float3x3.

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
An option key to specify the CIContextMBS to be used in the handler's Core Image operations.

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 dictionary from CGImageSourceCopyPropertiesAtIndex containing metadata for algorithms like horizon detection.

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


The biggest plugin in space...