Contents

init(targetedCMSampleBuffer:options:completionHandler:)

Creates a new request with a completion handler that targets an image in a sample buffer.

Declaration

init(targetedCMSampleBuffer sampleBuffer: CMSampleBuffer, options: [VNImageOption : Any] = [:], completionHandler: VNRequestCompletionHandler? = nil)

Parameters

  • sampleBuffer:

    A sample buffer containing a valid Imagebuffer.

  • options:

    A dictionary with options specifying auxiliary information for the image.

  • completionHandler:

    The callback the system invokes when the request finishes executing.

See Also

Creating a Request