Barcode information detected by an image analysis request.


class VNBarcodeObservation : VNRectangleObservation


This type of observation results from a VNDetectBarcodesRequest. It contains information about the detected barcode, including parsed payload data for supported symbology.


Parsing the Payload

var payloadStringValue: String?

The string representation of the barcode's payload.

Reading Barcode Descriptors

var barcodeDescriptor: CIBarcodeDescriptor?

A CIBarcodeDescriptor object with low-level details about the barcode and its data.

Identifying Barcode Types

var symbology: VNBarcodeSymbology

The symbology of the observed barcode.


Conforms To

See Also

Barcode Detection

struct VNBarcodeSymbology

Symbologies supported by the Vision framework.

class VNDetectBarcodesRequest

An image analysis request that finds and recognizes barcodes in an image.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software