The set of active semantics on the frame.
A frame semantic represents 2D information that ARKit extracts from a frame. Set this property to tell ARKit to provide information about one or more
ARConfiguration.FrameSemantics every frame.
Enable 2D Body Detection
To get information about the 2D location of a person that ARKit recognizes in a frame, you enable the
bodyDetection frame semantic.
Enable People Occlusion
To indicate that a person should overlap your app's virtual content regardless of the person's depth in the camera's field of view, you enable the
personSegmentation frame semantic.
This option works for standard renderers like
ARSCNView, and is suitable for virtual reality or green screen scenarios.
Enable People Occlusion with Depth
To indicate that a person should overlap your app's virtual content only when the person is closer to the camera than the virtual content, you enable the
personSegmentationWithDepth frame semantic.
This operation is done pixel by pixel, according to the renderer's z-buffer, when you use standard renderers like
Enable People Occlusion in Custom Renderers