init(targetedCVPixelBuffer:orientation:options:completionHandler:)
Creates a new request targeting an image in a pixel buffer of known orientation.
Declaration
init(targetedCVPixelBuffer pixelBuffer: CVPixelBuffer, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:], completionHandler: VNRequestCompletionHandler? = nil)Parameters
- pixelBuffer:
The pixel buffer containing the targeted image.
- orientation:
The orientation of the image buffer, based on EXIF specification and superseding other orientation information. The value must be an integer from
1to8; see Kcgimagepropertyorientation for details. - 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
init(targetedCGImage:options:completionHandler:)init(targetedCGImage:orientation:options:completionHandler:)init(targetedCIImage:options:completionHandler:)init(targetedCIImage:orientation:options:completionHandler:)init(targetedCVPixelBuffer:options:completionHandler:)init(targetedCMSampleBuffer:options:completionHandler:)init(targetedCMSampleBuffer:orientation:options:completionHandler:)init(targetedImageData:options:completionHandler:)init(targetedImageData:orientation:options:completionHandler:)init(targetedImageURL:options:completionHandler:)init(targetedImageURL:orientation:options:completionHandler:)