---
title: DetectHumanRectanglesRequest
framework: vision
role: symbol
role_heading: Structure
path: vision/detecthumanrectanglesrequest
---

# DetectHumanRectanglesRequest

A request that finds rectangular regions that contain people in an image.

## Declaration

```swift
struct DetectHumanRectanglesRequest
```

## Overview

Overview The request returns the resulting rectangle data in a collection of HumanObservation objects.

## Topics

### Creating a request

- [init(_:)](vision/detecthumanrectanglesrequest/init(_:).md)

### 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:)-xspx.md)
- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-3hddl.md)
- [perform(on:orientation:)](vision/imageprocessingrequest/perform(on:orientation:)-85ex1.md)

### Understanding the result

- [HumanObservation](vision/humanobservation.md)

### Configuring a request

- [upperBodyOnly](vision/detecthumanrectanglesrequest/upperbodyonly.md)

### Getting the revision

- [revision](vision/detecthumanrectanglesrequest/revision-swift.property.md)
- [supportedRevisions](vision/detecthumanrectanglesrequest/supportedrevisions.md)
- [DetectHumanRectanglesRequest.Revision](vision/detecthumanrectanglesrequest/revision-swift.enum.md)

## Relationships

### Conforms To

- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [ImageProcessingRequest](vision/imageprocessingrequest.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [VisionRequest](vision/visionrequest.md)

## See Also

### Image classification and recognition

- [Classifying images for categorization and search](vision/classifying-images-for-categorization-and-search.md)
- [ClassifyImageRequest](vision/classifyimagerequest.md)
- [RecognizeAnimalsRequest](vision/recognizeanimalsrequest.md)
