<!--
{
  "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/VNDetectedObjectObservation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNDetectedObjectObservation"
  },
  "title" : "VNDetectedObjectObservation"
}
-->

# VNDetectedObjectObservation

An observation that provides the position and extent of an image feature that an image- analysis request detects.

```
class VNDetectedObjectObservation
```

## Overview

This class is the observation type that [`VNTrackObjectRequest`](/documentation/Vision/VNTrackObjectRequest) generates. It represents an object that the Vision request detects and tracks.

## Topics

### Creating an Observation

[`init(boundingBox:)`](/documentation/Vision/VNDetectedObjectObservation/init(boundingBox:))

Creates an observation with a bounding box.

[`init(requestRevision:boundingBox:)`](/documentation/Vision/VNDetectedObjectObservation/init(requestRevision:boundingBox:))

Creates an observation with a revision number and bounding box.

### Locating a Detected Object

[`boundingBox`](/documentation/Vision/VNDetectedObjectObservation/boundingBox)

The bounding box of the object that the request detects.

### Accessing an Image Mask

[`globalSegmentationMask`](/documentation/Vision/VNDetectedObjectObservation/globalSegmentationMask)

A resulting pixel buffer from a request to generate a segmentation mask for an image.



---

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)