---
title: DetectContoursRequest
framework: vision
role: symbol
role_heading: Structure
path: vision/detectcontoursrequest
---

# DetectContoursRequest

A request that detects the contours of the edges of an image.

## Declaration

```swift
struct DetectContoursRequest
```

## Overview

Overview This request generates a ContoursObservation object that describes the contours in an image.

## Topics

### Creating a request

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

- [ContoursObservation](vision/contoursobservation.md)

### Configuring a request

- [contrastAdjustment](vision/detectcontoursrequest/contrastadjustment.md)
- [contrastPivot](vision/detectcontoursrequest/contrastpivot.md)
- [detectsDarkOnLight](vision/detectcontoursrequest/detectsdarkonlight.md)
- [maximumImageDimension](vision/detectcontoursrequest/maximumimagedimension.md)

### Getting the revision

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

- [DetectHorizonRequest](vision/detecthorizonrequest.md)
- [DetectRectanglesRequest](vision/detectrectanglesrequest.md)
