One Logo Pool Ball
VisionKit · IOS API REFERENCE

RecognizedItem.Text

struct · iOS 16.0+ · SDK 27.1

struct Text

An object that represents a text item that the scanner recognizes.

Members (4)

get · iOS 16.0+

transcript

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

The string that the text item represents.

get · iOS 16.0+

observation

TypeScript
get observation(): _Vision_VNRecognizedTextObservation
Swift declaration
var observation: VNRecognizedTextObservation { get }

An object that contains details about the location and content of text and glyphs in an image. Use this property only if you need vision details that aren’t included in the recognized item properties.

get · iOS 16.0+

id

TypeScript
get id(): string
Swift declaration
var id: UUID { get }

A unique identifier for the recognized item. If the same item resides in more than one video frame, the `id` remains the same.

get · iOS 16.0+

bounds

TypeScript
get bounds(): RecognizedItem_Bounds
Swift declaration
var bounds: RecognizedItem.Bounds { get }

The bounds of the recognized item in view coordinates.

Skipped declarations

No declarations were skipped in this snapshot.

All VisionKit types →