Instance Method

initWithCGImage:options:

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

Declaration

- (instancetype)initWithCGImage:(CGImageRef)image options:(NSDictionary<VNImageOption, id> *)options;

Parameters

image

A CGImageRef containing the image to be used for performing the requests. Image content is immutable.

options

An optional dictionary containing VNImageOption keys to auxiliary image data.

See Also

Initializing a Handler

- initWithCGImage:orientation:options:

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

- initWithCIImage:options:

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

- initWithCIImage:orientation:options:

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

- initWithCVPixelBuffer:options:

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

- initWithCVPixelBuffer:orientation:options:

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

- initWithData:options:

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

- initWithData:orientation:options:

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

- initWithURL:options:

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

- initWithURL:orientation:options:

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