Instance Method

perform(_:on:)

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

Declaration

func perform(_ requests: [VNRequest], on image: CGImage) throws

Parameters

requests

A nonempty array of VNRequest requests to perform.

image

The input CGImage on which to perform the request.

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, 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.