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