Contents

init(cvPixelBuffer:orientation:options:)

Creates a handler for performing requests on a Core Video pixel buffer of a known orientation.

Declaration

init(cvPixelBuffer pixelBuffer: CVPixelBuffer, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Parameters

  • pixelBuffer:

    A pixel buffer that contains the image to use for performing the requests. The contents can’t change for the lifetime of the request handler.

  • orientation:

    The orientation of the input image.

  • options:

    A dictionary that specifies auxiliary information about the image.

See Also

Creating a Request Handler