---
title: DetectHorizonRequest
framework: vision
role: symbol
role_heading: Structure
path: vision/detecthorizonrequest
---

# DetectHorizonRequest

An image-analysis request that determines the horizon angle in an image.

## Declaration

```swift
struct DetectHorizonRequest
```

## Overview

Overview This request generates a HorizonObservation object that describes the horizon the request detects.

## Topics

### Creating a request

- [init(_:)](vision/detecthorizonrequest/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

- [HorizonObservation](vision/horizonobservation.md)

### Getting the revision

- [revision](vision/detecthorizonrequest/revision-swift.property.md)
- [supportedRevisions](vision/detecthorizonrequest/supportedrevisions.md)
- [DetectHorizonRequest.Revision](vision/detecthorizonrequest/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

### Shape and edge detection

- [DetectContoursRequest](vision/detectcontoursrequest.md)
- [DetectRectanglesRequest](vision/detectrectanglesrequest.md)
