<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNSequenceRequestHandler/perform(_:on:)-45e73",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNSequenceRequestHandler(im)performRequests:onCMSampleBuffer:error:"
  },
  "title" : "perform(_:on:)"
}
-->

# perform(_:on:)

Performs one or more requests on an image contained within a sample buffer.

```
func perform(_ requests: [VNRequest], on sampleBuffer: CMSampleBuffer) throws
```

## Parameters

`requests`

The array of requests to perform.

`sampleBuffer`

A sample buffer containing a valid <doc://com.apple.documentation/documentation/CoreMedia/CMSampleBuffer/imageBuffer>.

## 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)