Initializer

init(targetedImageURL:orientation:options:)

Creates a new request targeting an image of known orientation, at the specified URL.

Declaration

init(targetedImageURL imageURL: URL, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])

Parameters

imageURL

The URL of 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 1 to 8; see kCGImagePropertyOrientation for details.

options

A dictionary with options specifying auxiliary information for the image.

See Also

Initializing a Targeted Image Request

init(targetedCGImage: CGImage, options: [VNImageOption : Any])

Creates a new request targeting a Core Graphics image.

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

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

init(targetedCGImage: CGImage, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any])

Creates a new request targeting a Core Graphics image of known orientation.

init(targetedCGImage: CGImage, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

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

init(targetedCIImage: CIImage, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

Creates a new request targeting a CIImage, executing the completion handler when done.

init(targetedCVPixelBuffer: CVPixelBuffer, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

Creates a new request targeting an image in a CVPixelBuffer, executing the completion handler when done.

init(targetedImageData: Data, options: [VNImageOption : Any])

Creates a new request targeting an image as raw data.

init(targetedImageData: Data, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

Creates a new request targeting an image as raw data, executing the completion handler when done.

init(targetedImageData: Data, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any])

Creates a new request targeting a raw data image of known orientation.

init(targetedImageData: Data, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

Creates a new request targeting a raw data image of known orientation, executing the completion handler when done.

init(targetedImageURL: URL, options: [VNImageOption : Any])

Creates a new request targeting an image at the specified URL.

init(targetedImageURL: URL, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

Creates a new request targeting an image at the specified URL, executing the completion handler when done.

init(targetedImageURL: URL, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any], completionHandler: VNRequestCompletionHandler?)

Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done.