One Logo Pool Ball
Vision · IOS API REFERENCE

ImageProcessingRequest

protocol · iOS 18.0+ · SDK 27.1

protocol ImageProcessingRequest : VisionRequest

An image analysis request that operates on a region of interest and produces observations.

Members (6)

method · iOS 18.0+

perform

Swift declaration
func perform(on url: URL, orientation: CGImagePropertyOrientation? = nil) async throws -> Self.Result

Perform the request on an image `URL` and produce observations. - Parameters: - url: The input `URL` on which to perform the request. - orientation: The orientation of the input image. Default is `nil`. - Returns: The observation(s) produced by the request.

method · iOS 18.0+

perform

Swift declaration
func perform(on data: Data, orientation: CGImagePropertyOrientation? = nil) async throws -> Self.Result

Perform the request on image `Data` and produce observations. - Parameters: - data: The input `Data` on which to perform the request. - orientation: The orientation of the input image. Default is `nil`. - Returns: The observation(s) produced by the request.

method · iOS 18.0+

perform

Swift declaration
func perform(on image: CGImage, orientation: CGImagePropertyOrientation? = nil) async throws -> Self.Result

Perform the request on a `CGImage` and produce observations. - Parameters: - image: The input `CGImage` on which to perform the request. - orientation: The orientation of the input image. Default is `nil`. - Returns: The observation(s) produced by the request.

method · iOS 18.0+

perform

Swift declaration
func perform(on pixelBuffer: CVPixelBuffer, orientation: CGImagePropertyOrientation? = nil) async throws -> Self.Result

Perform the request on a `CVPixelBuffer` and produce observations. - Parameters: - pixelBuffer: The input `CVPixelBuffer` on which to perform the request. - orientation: The orientation of the input image. Default is `nil`. - Returns: The observation(s) produced by the request.

method · iOS 18.0+

perform

Swift declaration
func perform(on sampleBuffer: CMSampleBuffer, orientation: CGImagePropertyOrientation? = nil) async throws -> Self.Result

Perform the request on a `CMSampleBuffer` and produce observations. - Parameters: - sampleBuffer: The input `CMSampleBuffer` on which to perform the request. - orientation: The orientation of the input image. Default is `nil`. - Returns: The observation(s) produced by the request.

method · iOS 18.0+

perform

Swift declaration
func perform(on image: CIImage, orientation: CGImagePropertyOrientation? = nil) async throws -> Self.Result

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →