One Logo Pool Ball
VisionKit · IOS API REFERENCE

RecognizedItem

enum · iOS 16.0+ · SDK 27.1

enum RecognizedItem

An item that the data scanner recognizes in the camera’s live video. A `RecognizedItem` enumeration contains the data for an item that the scanner identifies, such as the location, bounds, and content of the item. For text items, the content is the selected string, and for barcodes, it’s the encoded payload string.

Members (2)

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 four corners of the recognized item in view coordinates.

Skipped declarations

No declarations were skipped in this snapshot.

All VisionKit types →