Contents

init(data:options:)

Creates a handler to use for performing requests on an image in a data object.

Declaration

init(data imageData: Data, options: [VNImageOption : Any] = [:])

Parameters

  • imageData:

    Data 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.

Discussion

The intended use cases of this type of initializer include compressed images and network downloads, where a client may receive a JPEG from a website or the cloud.

See Also

Creating a Request Handler