Type Property


An option key to specify the CIContext to be used in the handler's Core Image operations.


static let ciContext: VNImageOption


If this key isn't specified, Vision will create its own CIContext.

Specify a CIContext when you've used one in processing an input CIImage or executing a CIFilter chain, so you can save the cost of creating a new context.

See Also

Options Dictionary Keys

static let properties: VNImageOption

The dictionary from CGImageSourceCopyPropertiesAtIndex(_:_:_:) containing metadata for algorithms like horizon detection.

static let cameraIntrinsics: VNImageOption

An option to specify the camera intrinstics as an NSData or CFData object representing a matrix_float3x3.