Class

VNSequenceRequestHandler

An object that processes image analysis requests for each frame in a sequence.

Declaration

class VNSequenceRequestHandler : NSObject

Overview

Instantiate this handler to perform Vision requests on a series of images. Unlike the VNImageRequestHandler, you don't specify the image on creation. Instead, you supply each image frame one by one as you continue to call one of the perform methods.

Topics

Initializing a Sequence Request

init()

Initializes a sequence request handler.

Performing a Sequence Request

func perform([VNRequest], on: CGImage)

Schedules Vision requests to be performed on a Core Graphics image.

func perform([VNRequest], on: CGImage, orientation: CGImagePropertyOrientation)

Schedules one or more Vision requests to be performed on a Core Graphics image with known orientation.

func perform([VNRequest], on: CIImage)

Schedules one or more Vision requests to be performed on CIImage data.

func perform([VNRequest], on: CIImage, orientation: CGImagePropertyOrientation)

Schedules one or more Vision requests to be performed on CIImage data with known orientation.

func perform([VNRequest], on: CVPixelBuffer)

Schedules one or more Vision requests to be performed on a Core Video pixel buffer.

func perform([VNRequest], on: CVPixelBuffer, orientation: CGImagePropertyOrientation)

Schedules one or more Vision requests to be performed on a Core Video pixel buffer with known orientation.

func perform([VNRequest], onImageData: Data)

Schedules one or more Vision requests to be performed on raw image data.

func perform([VNRequest], onImageData: Data, orientation: CGImagePropertyOrientation)

Schedules one or more Vision requests to be performed on raw data containing an image with known orientation.

func perform([VNRequest], onImageURL: URL)

Schedules one or more Vision requests to be performed on an image.

func perform([VNRequest], onImageURL: URL, orientation: CGImagePropertyOrientation)

Schedules one or more Vision requests to be performed on an image with known orientation, at a specific URL.

Relationships

Inherits From

Conforms To