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
init(cgImage:options:)init(cgImage:orientation:options:)init(ciImage:options:)init(ciImage:orientation:options:)init(cvPixelBuffer:options:)init(cvPixelBuffer:orientation:options:)init(cvPixelBuffer:depthData:orientation:options:)init(cmSampleBuffer:options:)init(cmSampleBuffer:orientation:options:)init(cmSampleBuffer:depthData:orientation:options:)init(data:orientation:options:)init(url:options:)init(url:orientation:options:)