Contents

init(cgImage:orientation:options:)

Creates a handler to be used for performing requests on a Core Graphics image with known orientation.

Declaration

init(cgImage image: CGImage, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Parameters

  • image:

    A Cgimage containing the image to be used for performing the requests. Image content is immutable.

  • orientation:

    The orientation of the input image.

  • options:

    An optional dictionary containing Vnimageoption keys to auxiliary image data.

See Also

Creating a Request Handler