Structure

VNImageOption

An option key passed into VNImageRequestHandler creations or requests that take an auxiliary image.

Declaration

struct VNImageOption

Overview

Pass an option key into the VNImageRequestHandler instance on creation or request. Option keys are used to describe specific properties of an image or specify how an image needs to be handled.

Topics

Initializers

init(rawValue: String)

Initializes an option key using its string name.

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.

static let ciContext: VNImageOption

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

Relationships

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software