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

# RecognizeAnimalsRequest

A request that recognizes animals in an image.

```
struct RecognizeAnimalsRequest
```

## Overview

This request generates a collection of [`RecognizedObjectObservation`](/documentation/Vision/RecognizedObjectObservation) objects that describe the animals the request detects.

## Topics

### Creating a request

[`init(RecognizeAnimalsRequest.Revision?)`](/documentation/Vision/RecognizeAnimalsRequest/init(_:))

Creates an animal-recognition request.

### Performing a request

[`func perform(on: URL, orientation: CGImagePropertyOrientation?) async throws -> Self.Result`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-80bya)

Performs the request on an image URL and produces observations.

[`func perform(on: Data, orientation: CGImagePropertyOrientation?) async throws -> Self.Result`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-3f3f1)

Performs the request on image data and produces observations.

[`func perform(on: CGImage, orientation: CGImagePropertyOrientation?) async throws -> Self.Result`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-qxxx)

Performs the request on a Core Graphics image and produces observations.

[`func perform(on: CVPixelBuffer, orientation: CGImagePropertyOrientation?) async throws -> Self.Result`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-xspx)

Performs the request on a pixel buffer and produces observations.

[`func perform(on: CMSampleBuffer, orientation: CGImagePropertyOrientation?) async throws -> Self.Result`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-3hddl)

Performs the request on a Core Media buffer and produces observations.

[`func perform(on: CIImage, orientation: CGImagePropertyOrientation?) async throws -> Self.Result`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-85ex1)

Performs the request on a Core Image image and produces observations.

### Understanding the result

[`struct RecognizedObjectObservation`](/documentation/Vision/RecognizedObjectObservation)

An observation with an array of classification labels that classify the recognized object.

### Configuring a request

[`var supportedAnimals: [RecognizeAnimalsRequest.Animal]`](/documentation/Vision/RecognizeAnimalsRequest/supportedAnimals)

The collection of animals that the request can detect.

[`enum Animal`](/documentation/Vision/RecognizeAnimalsRequest/Animal)

An identifier for a recognizable animal.

### Getting the revision

[`let revision: RecognizeAnimalsRequest.Revision`](/documentation/Vision/RecognizeAnimalsRequest/revision-swift.property)

The algorithm or implementation the request uses.

[`static let supportedRevisions: [RecognizeAnimalsRequest.Revision]`](/documentation/Vision/RecognizeAnimalsRequest/supportedRevisions)

The collection of revisions the request supports.

[`enum Revision`](/documentation/Vision/RecognizeAnimalsRequest/Revision-swift.enum)

A type that describes the algorithm or implementation that the request performs.

### Instance Properties

[`var supportedIdentifiers: [RecognizeAnimalsRequest.Identifier]`](/documentation/Vision/RecognizeAnimalsRequest/supportedIdentifiers)

The collection of animal identifiers that the request can detect.

### Enumerations

[`enum Identifier`](/documentation/Vision/RecognizeAnimalsRequest/Identifier)

## Relationships

### Conforms To

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

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

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

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

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

[`ImageProcessingRequest`](/documentation/Vision/ImageProcessingRequest)

[`VisionRequest`](/documentation/Vision/VisionRequest)

---

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)