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

# VNRectangleObservation

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

```
class VNRectangleObservation
```

## Topics

### Creating an Observation

[`init(requestRevision:topLeft:topRight:bottomRight:bottomLeft:)`](/documentation/Vision/VNRectangleObservation/init(requestRevision:topLeft:topRight:bottomRight:bottomLeft:))

Creates a rectangle observation from its corner points.

[`init(requestRevision:topLeft:bottomLeft:bottomRight:topRight:)`](/documentation/Vision/VNRectangleObservation/init(requestRevision:topLeft:bottomLeft:bottomRight:topRight:))

Creates a rectangle observation from its corner points.

### Accessing the Coordinates

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

The coordinates of the lower-left corner of the observation bounding box.

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

The coordinates of the lower-right corner of the observation bounding box.

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

The coordinates of the upper-left corner of the observation bounding box.

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

The coordinates of the upper-right corner of the observation bounding box.



---

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)