---
title: "perform(on:orientation:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/imageprocessingrequest/perform(on:orientation:)-xspx"
---

# perform(on:orientation:)

Performs the request on a pixel buffer and produces observations.

## Declaration

```swift
func perform(on pixelBuffer: CVPixelBuffer, orientation: CGImagePropertyOrientation?) async throws -> Self.Result
```

## Parameters

- `pixelBuffer`: The input doc://com.apple.documentation/documentation/CoreVideo/CVPixelBuffer on which to perform the request.
- `orientation`: The orientation of the input image. Default is nil.

## Return Value

Return Value The observation — or list of observations — the request produces.

## See Also

### Performing a request

- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-80bya.md)
- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-3f3f1.md)
- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-qxxx.md)
- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-3hddl.md)
- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-85ex1.md)
