Contents

personSegmentation

An option that indicates that people occlude your app’s virtual content.

Declaration

static var personSegmentation: ARConfiguration.FrameSemantics { get }

Discussion

The personSegmentation frame semantic specifies that any person ARKit detects in the camera feed occludes virtual content, regardless of the person’s depth in the scene.

When this option is enabled, ARKit sets the estimatedDepthData and segmentationBuffer properties to serve as a foundation for people occlusion. The standard renderers (ARView, and ARSCNView) use those properties to implement people occlusion for you. See frameSemantics for more information.

See Also

Occluding Virtual Content with People