Enumeration

ARFrame.SegmentationClass

A categorization of a pixel that defines a type of content you use to occlude your app's virtual content.

Declaration

enum SegmentationClass : UInt8

Overview

ARKit applies the categories defined in this class based on its interpretation of the camera feed's pixel data. Only people are identified in a camera feed, and therefore the available pixel classifications are either ARFrame.SegmentationClass.person or ARFrame.SegmentationClass.none.

Topics

Classifying Pixels

case person

A classification of a pixel in the segmentation buffer as part of a person.

case none

A classification of a pixel in the segmentation buffer as unidentified.

See Also

Occluding Virtual Content with People

var segmentationBuffer: CVPixelBuffer?

A buffer that contains pixel information identifying the shape of objects from the camera feed that you use to occlude virtual content.

var estimatedDepthData: CVPixelBuffer?

A buffer that represents the estimated depth values from the camera feed that you use to occlude virtual content.