Instance Method

perform(_:onImageData:)

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

Declaration

func perform(_ requests: [VNRequest], onImageData imageData: Data) throws

Parameters

requests

An array of VNRequest requests to perform.

imageData

The input image data 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)

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