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

# RecognizedTextObservation

An object that contains information about both the location and content of text and glyphs that the framework recognizes in an image.

```
struct RecognizedTextObservation
```

## Topics

### Creating an observation

[`init(_:)`](/documentation/Vision/RecognizedTextObservation/init(_:))

Creates a recognized text observation.

### Inspecting an observation

[`boundingRegion`](/documentation/Vision/RecognizedTextObservation/boundingRegion)

The bounding region of the text.

[`isTitle`](/documentation/Vision/RecognizedTextObservation/isTitle)

Whether this text is the title of the document.

[`recognitionLanguages`](/documentation/Vision/RecognizedTextObservation/recognitionLanguages)

The languages in which the recognized text was written.

[`shouldWrapToNextLine`](/documentation/Vision/RecognizedTextObservation/shouldWrapToNextLine)

Whether the text continues on the next line.

[`textDirection`](/documentation/Vision/RecognizedTextObservation/textDirection)

[`Direction`](/documentation/Vision/RecognizedTextObservation/Direction)

An enum representing which direction the text is read.

[`transcript`](/documentation/Vision/RecognizedTextObservation/transcript)

The top text candidate as a string.

### Getting the recognized text

[`topCandidates(_:)`](/documentation/Vision/RecognizedTextObservation/topCandidates(_:))

Requests the top candidates for a recognized text string.

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

Text recognized in an image through a text recognition request.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

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

---

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)