Contents

init(targetedCGImage:options:completionHandler:)

Creates a new request targeting a Core Graphics image, executing the completion handler when done.

Declaration

init(targetedCGImage cgImage: CGImage, options: [VNImageOption : Any] = [:], completionHandler: VNRequestCompletionHandler? = nil)

Parameters

  • cgImage:

    The targeted Core Graphics 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