<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNDetectDocumentSegmentationRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNDetectDocumentSegmentationRequest"
  },
  "title" : "VNDetectDocumentSegmentationRequest"
}
-->

# VNDetectDocumentSegmentationRequest

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

```
class VNDetectDocumentSegmentationRequest
```

## 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`](/documentation/Vision/VNDetectDocumentSegmentationRequest/results)

The results of a document segmentation request.

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

An object that represents the four vertices of a detected rectangle.

### Identifying Request Revisions

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

A constant for specifying revision 1 of the document segmentation request.



---

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)