<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-80bya",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision22ImageProcessingRequestP7perform2on11orientation6ResultQz10Foundation3URLV_So26CGImagePropertyOrientationVSgtYaKF"
  },
  "title" : "perform(on:orientation:)"
}
-->

# perform(on:orientation:)

Performs the request on an image URL and produces observations.

```
func perform(on url: URL, orientation: CGImagePropertyOrientation?) async throws -> Self.Result
```

## Parameters

`url`

The input <doc://com.apple.documentation/documentation/Foundation/URL> on which to perform the request.

`orientation`

The orientation of the input image. Default is `nil`.

## Return Value

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

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)