---
title: VNRectangleObservation
framework: vision
role: symbol
role_heading: Class
path: vision/vnrectangleobservation
---

# VNRectangleObservation

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

## Declaration

```swift
class VNRectangleObservation
```

## Topics

### Creating an Observation

- [init(requestRevision:topLeft:topRight:bottomRight:bottomLeft:)](vision/vnrectangleobservation/init(requestrevision:topleft:topright:bottomright:bottomleft:).md)
- [init(requestRevision:topLeft:bottomLeft:bottomRight:topRight:)](vision/vnrectangleobservation/init(requestrevision:topleft:bottomleft:bottomright:topright:).md)

### Accessing the Coordinates

- [bottomLeft](vision/vnrectangleobservation/bottomleft.md)
- [bottomRight](vision/vnrectangleobservation/bottomright.md)
- [topLeft](vision/vnrectangleobservation/topleft.md)
- [topRight](vision/vnrectangleobservation/topright.md)

## Relationships

### Inherits From

- [VNDetectedObjectObservation](vision/vndetectedobjectobservation.md)

### Inherited By

- [VNBarcodeObservation](vision/vnbarcodeobservation.md)
- [VNRecognizedTextObservation](vision/vnrecognizedtextobservation.md)
- [VNTextObservation](vision/vntextobservation.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [VNRequestRevisionProviding](vision/vnrequestrevisionproviding.md)

## See Also

### Accessing the Results

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