<!--
{
  "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/ImageRequestHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision19ImageRequestHandlerC"
  },
  "title" : "ImageRequestHandler"
}
-->

# ImageRequestHandler

An object that processes one or more image-analysis requests pertaining to a single image.

```
final class ImageRequestHandler
```

## Overview

Instantiate this handler to perform Vision requests on a single image. You specify the image, and then call [`perform(_:)`](/documentation/Vision/ImageRequestHandler/perform(_:)-7b6g5) to begin executing the request.

## Topics

### Creating a request handler

[`init(_:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:orientation:)-6imw8)

Creates a handler for performing requests on an image at the specified URL.

[`init(_:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:orientation:)-8cwes)

Creates a handler for performing requests on an image contained in a data object.

[`init(_:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:orientation:)-8nodt)

Creates a handler for performing requests on Core Graphics images.

[`init(_:depthData:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:depthData:orientation:)-3ebxg)

Creates a handler for performing requests on a Core Video pixel buffer.

[`init(_:depthData:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:depthData:orientation:)-5itte)

Creates a request handler that performs requests on an image contained within a sample buffer.

[`init(_:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:orientation:)-2hvfr)

Creates a handler for performing requests on Core Image images.

[`init(_:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:orientation:)-3zrh5)

[`init(_:orientation:)`](/documentation/Vision/ImageRequestHandler/init(_:orientation:)-8q7vz)

### Performing the request

[`perform(_:)`](/documentation/Vision/ImageRequestHandler/perform(_:)-l6er)

Performs one or more framework requests on the handler’s image.

[`perform(_:)`](/documentation/Vision/ImageRequestHandler/perform(_:)-7b6g5)

Performs a framework request on the handler’s image.

[`performAll(_:)`](/documentation/Vision/ImageRequestHandler/performAll(_:))

Schedules a collection of framework requests to perform on the handler’s image.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)