Contents

init(targetedImageData:options:completionHandler:)

Creates a new request targeting an image as raw data, executing the completion handler when done.

Declaration

init(targetedImageData imageData: Data, options: [VNImageOption : Any] = [:], completionHandler: VNRequestCompletionHandler? = nil)

Parameters

  • imageData:

    The data containing the targeted image.

  • options:

    A dictionary with options specifying auxiliary information for the image.

  • completionHandler:

    The block to invoke when the request has finished executing.

See Also

Creating a Request