<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNBarcodeObservation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNBarcodeObservation"
  },
  "title" : "VNBarcodeObservation"
}
-->

# VNBarcodeObservation

An object that represents barcode information that an image analysis request detects.

```
class VNBarcodeObservation
```

## Overview

This type of observation results from a [`VNDetectBarcodesRequest`](/documentation/Vision/VNDetectBarcodesRequest). It contains information about the detected barcode, including parsed payload data for supported symbologies.

## Topics

### Parsing the Payload

[`payloadStringValue`](/documentation/Vision/VNBarcodeObservation/payloadStringValue)

A string value that represents the barcode payload.

[`payloadData`](/documentation/Vision/VNBarcodeObservation/payloadData)

The raw data representation of the barcode’s payload.

[`supplementalPayloadString`](/documentation/Vision/VNBarcodeObservation/supplementalPayloadString)

The supplemental code decoded as a string value.

[`supplementalPayloadData`](/documentation/Vision/VNBarcodeObservation/supplementalPayloadData)

[`supplementalCompositeType`](/documentation/Vision/VNBarcodeObservation/supplementalCompositeType)

The supplemental composite type.

[`isGS1DataCarrier`](/documentation/Vision/VNBarcodeObservation/isGS1DataCarrier)

A Boolean value that indicates whether the barcode carries any global standards data.

### Reading Barcode Descriptors

[`barcodeDescriptor`](/documentation/Vision/VNBarcodeObservation/barcodeDescriptor)

An object that describes the low-level details about the barcode and its data.

### Identifying Barcode Types

[`symbology`](/documentation/Vision/VNBarcodeObservation/symbology)

The symbology of the observed barcode.

### Identifying Barcode Colors

[`isColorInverted`](/documentation/Vision/VNBarcodeObservation/isColorInverted)

A Boolean value that indicates whether the barcode is color inverted.



---

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)