Class

VNTargetedImageRequest

The abstract superclass for image analysis requests that operate on both the processed image and a secondary image.

Overview

Other Vision request handlers that operate on both the processed image and a secondary image inherit from this abstract base class. Instantiate one of its subclasses to perform image analysis, and pass in auxiliary image data by filling in the options dictionary at initialization.

Topics

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? = nil)

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? = nil)

Creates a new request targeting a Core Graphics image of known orientation, 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? = nil)

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

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

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? = nil)

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] = [:])

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

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

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

Relationships

Inherits From

Conforms To

See Also

Image Alignment

class VNImageRegistrationRequest

The abstract superclass for image analysis requests that align images based on their content.

class VNImageAlignmentObservation

The abstract superclass for image analysis results that describe the relative alignment of two images.

class VNTranslationalImageRegistrationRequest

An image analysis request that determines the affine transform needed to align the content of two images.

class VNImageTranslationAlignmentObservation

Affine transform information produced by an image alignment request.

class VNHomographicImageRegistrationRequest

An image analysis request that determines the perspective warp matrix needed to align the content of two images.

class VNImageHomographicAlignmentObservation

Perspective warp information produced by an image alignment request.