Instance Method

perform(_:onImageURL:orientation:)

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

Declaration

func perform(_ requests: [VNRequest], onImageURL imageURL: URL, orientation: CGImagePropertyOrientation) throws

Parameters

requests

An array of VNRequest requests to perform.

imageURL

A URL pointing to the image on which to perform the request.

orientation

The orientation of the input image.

Return Value

Returns true if all requests were scheduled and performed. Check the error parameter if the return value is false.

See Also

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.