---
title: VNPixelBufferObservation
framework: vision
role: symbol
role_heading: Class
path: vision/vnpixelbufferobservation
---

# VNPixelBufferObservation

An object that represents an image that an image-analysis request produces.

## Declaration

```swift
class VNPixelBufferObservation
```

## Overview

Overview This type of observation results from performing a VNCoreMLRequest image analysis with a Core ML model that has an image-to-image processing role. For example, this observation might result from a model that analyzes the style of one image and then transfers that style to a different image. Vision infers that an MLModel object is an image-to-image model if that model includes an image. Its modelDescription object includes an image-typed feature description in its outputDescriptionsByName dictionary.

## Topics

### Parsing Observation Content

- [pixelBuffer](vision/vnpixelbufferobservation/pixelbuffer.md)
- [featureName](vision/vnpixelbufferobservation/featurename.md)

### Getting the supported pixel formats

- [supportedOutputPixelFormats()](vision/vngeneratepersonsegmentationrequest/supportedoutputpixelformats().md)

## Relationships

### Inherits From

- [VNObservation](vision/vnobservation.md)

### Inherited By

- [VNSaliencyImageObservation](vision/vnsaliencyimageobservation.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [VNRequestRevisionProviding](vision/vnrequestrevisionproviding.md)

## See Also

### Machine learning image analysis

- [Classifying Images with Vision and Core ML](coreml/classifying-images-with-vision-and-core-ml.md)
- [Training a Create ML Model to Classify Flowers](vision/training-a-create-ml-model-to-classify-flowers.md)
- [VNCoreMLRequest](vision/vncoremlrequest.md)
- [VNClassificationObservation](vision/vnclassificationobservation.md)
- [VNCoreMLFeatureValueObservation](vision/vncoremlfeaturevalueobservation.md)
