<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/DocumentObservation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision19DocumentObservationV"
  },
  "title" : "DocumentObservation"
}
-->

# DocumentObservation

Information about the sections of content that an image-analysis request detects in a document.

```
struct DocumentObservation
```

## Overview

The observation allows you to access a document’s content and group it within different sections.
An observation is the result of using a [`RecognizeDocumentsRequest`](/documentation/Vision/RecognizeDocumentsRequest) to process an image of a
document and detects the content within that document using a container. Each container provides access
to any text, lists, barcodes, or any other detected data that appears within the region of the container.

## Topics

### Inspecting an observation

[`let uuid: UUID`](/documentation/Vision/DocumentObservation/uuid)

A unique alphanumeric value that the framework assigns to the observation.

[`let confidence: Float`](/documentation/Vision/DocumentObservation/confidence)

The level of confidence in the observation’s accuracy.

[`let document: DocumentObservation.Container`](/documentation/Vision/DocumentObservation/document)

The contents of the document.

[`let timeRange: CMTimeRange?`](/documentation/Vision/DocumentObservation/timeRange)

Time in a video frame where the observation was detected.

### Getting the recognized text

[`struct Container`](/documentation/Vision/DocumentObservation/Container)

A region of content recognized in a document.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Decodable`](/documentation/Swift/Decodable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Copyable`](/documentation/Swift/Copyable)

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

---

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)