---
title: VNDetectDocumentSegmentationRequest
framework: vision
role: symbol
role_heading: Class
path: vision/vndetectdocumentsegmentationrequest
---

# VNDetectDocumentSegmentationRequest

An object that detects rectangular regions that contain text in the input image.

## Declaration

```swift
class VNDetectDocumentSegmentationRequest
```

## Overview

Overview Perform this request to detect a document in an image. The result that the request generates contains the four corner points of a document’s quadrilateral and saliency mask.

## Topics

### Accessing the Results

- [results](vision/vndetectdocumentsegmentationrequest/results.md)
- [VNRectangleObservation](vision/vnrectangleobservation.md)

### Identifying Request Revisions

- [VNDetectDocumentSegmentationRequestRevision1](vision/vndetectdocumentsegmentationrequestrevision1.md)

## Relationships

### Inherits From

- [VNImageBasedRequest](vision/vnimagebasedrequest.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Image sequence analysis

- [Applying Matte Effects to People in Images and Video](vision/applying-matte-effects-to-people-in-images-and-video.md)
- [Detecting human actions in a live video feed](createml/detecting-human-actions-in-a-live-video-feed.md)
- [Segmenting and colorizing individuals from a surrounding scene](vision/segmenting-and-colorizing-individuals-from-a-surrounding-scene.md)
- [VNStatefulRequest](vision/vnstatefulrequest.md)
- [VNGeneratePersonSegmentationRequest](vision/vngeneratepersonsegmentationrequest.md)
- [VNGeneratePersonInstanceMaskRequest](vision/vngeneratepersoninstancemaskrequest.md)
- [VNSequenceRequestHandler](vision/vnsequencerequesthandler.md)
