Instance Method

initWithURL:options:

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

Declaration

- (instancetype)initWithURL:(NSURL *)imageURL options:(NSDictionary<VNImageOption, id> *)options;

Parameters

imageURL

A URL pointing to the image to be used for performing the requests. The image must be in a format supported by Image I/O. Image content is immutable.

options

An optional dictionary containing VNImageOption keys to auxiliary image data.

See Also

Initializing a Handler

- initWithCGImage:options:

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

- 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:orientation:options:

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