Initializer

init(cvPixelBuffer:orientation:options:)

Creates a handler to be used for performing requests on a Core Video pixel buffer of a known orientation.

Declaration

init(cvPixelBuffer pixelBuffer: CVPixelBuffer, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Parameters

pixelBuffer

A CVPixelBuffer 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.

options

An optional dictionary containing VNImageOption keys to auxiliary image data.

See Also

Initializing a Handler

init(cgImage: CGImage, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on Core Graphics images.

init(cgImage: CGImage, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on a Core Graphics image with known orientation.

init(ciImage: CIImage, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on CIImage data.

init(ciImage: CIImage, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on CIImage data of a known orientation.

init(cvPixelBuffer: CVPixelBuffer, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on a Core Video pixel buffer.

init(data: Data, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on an image contained in an NSData object.

init(data: Data, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on an image of known orientation, contained in an NSData object.

init(url: URL, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on an image at the specified URL.

init(url: URL, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Creates a handler to be used for performing requests on an image with known orientation, at the specified URL.