One Logo Pool Ball
Vision · IOS API REFERENCE

RecognizedTextObservation

struct · iOS 18.0+ · SDK 27.1

struct RecognizedTextObservation

Members (17)

get · iOS 18.0+

bottomLeft

TypeScript
get bottomLeft(): NormalizedPoint
Swift declaration
let bottomLeft: NormalizedPoint

The coordinates of the lower-left corner of the quadrilateral.

get · iOS 18.0+

confidence

TypeScript
get confidence(): number
Swift declaration
let confidence: Float

The level of confidence normalized to `[0, 1]` where `1` is most confident. The only exception is results coming from `CoreMLRequest`, where confidence values are forwarded as is from relevant CoreML models

get · iOS 26.0+

transcript

TypeScript
get transcript(): string
Swift declaration
var transcript: String { get }

The top text candidate as a string. Please call `topCandidates` to see alternate text candidates.

get · iOS 18.0+

bottomRight

TypeScript
get bottomRight(): NormalizedPoint
Swift declaration
let bottomRight: NormalizedPoint

The coordinates of the lower-right corner of the quadrilateral.

get · iOS 18.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 26.0+

textDirection

TypeScript
get textDirection(): (RecognizedTextObservation_Direction) | null
Swift declaration
let textDirection: RecognizedTextObservation.Direction?
method · iOS 18.0+

topCandidates

TypeScript
topCandidates(maxCandidateCount: number): Array<RecognizedText>
Swift declaration
func topCandidates(_ maxCandidateCount: Int) -> [RecognizedText]

Requests the n top candidates for a recognized text string. This function returns no more than n candidates, but it may return fewer than n candidates. - Parameters: - maxCandidateCount: The maximum number of candidates to return. This can't exceed 10. - Returns: An array of the n top candidates, sorted by decreasing confidence score.

get · iOS 26.0+

boundingRegion

TypeScript
get boundingRegion(): ContoursObservation_Contour
Swift declaration
var boundingRegion: NormalizedRegion { get }

The bounding region of the text.

get · iOS 26.0+

recognitionLanguages

TypeScript
get recognitionLanguages(): Array<_Foundation_Locale_Language>
Swift declaration
let recognitionLanguages: [Locale.Language]

The languages in which the recognized text was written.

get · iOS 26.0+

shouldWrapToNextLine

TypeScript
get shouldWrapToNextLine(): (boolean) | null
Swift declaration
let shouldWrapToNextLine: Bool?

Whether the text continues on the next line.

get · iOS 18.0+

originatingRequestDescriptor

TypeScript
get originatingRequestDescriptor(): (RequestDescriptor) | null
Swift declaration
let originatingRequestDescriptor: RequestDescriptor?

The descriptor of the request that produced the observation.

get · iOS 18.0+

uuid

TypeScript
get uuid(): string
Swift declaration
let uuid: UUID

The unique identifier for the observation.

get · iOS 26.0+

isTitle

TypeScript
get isTitle(): boolean
Swift declaration
let isTitle: Bool

Whether this text is the title of the document.

get · iOS 18.0+

topLeft

TypeScript
get topLeft(): NormalizedPoint
Swift declaration
let topLeft: NormalizedPoint

The coordinates of the upper-left corner of the quadrilateral.

get · iOS 18.0+

topRight

TypeScript
get topRight(): NormalizedPoint
Swift declaration
let topRight: NormalizedPoint

The coordinates of the upper-right corner of the quadrilateral.

get · iOS 18.0+

timeRange

TypeScript
get timeRange(): (_CoreMedia_CMTimeRange) | null
Swift declaration
let timeRange: CMTimeRange?

The time range of the reported observation. When evaluating a sequence of image buffers, use this property to determine each observation’s start time and duration.

init · iOS 18.0+

init

TypeScript
static init(observation: VNRecognizedTextObservation): RecognizedTextObservation
Swift declaration
init(_ observation: VNRecognizedTextObservation)

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →