Contents

ARSkeleton2D

An object that describes the locations of a body’s joints in the camera feed.

Declaration

class ARSkeleton2D

Overview

ARSkeleton2D provides you with a 2D body’s joints in a flat hierarchy so you can access them efficiently. The joint locations are normalized within the range [0..1] in the coordinate space of the current frame’s camera image, where 0 is the upper left, and 1 is the bottom right.

To access a skeleton’s joints by name, you use landmarkForJointNamed:. To access a named joint by index (for example, for performance reasons), you query the definition for the named joint index using index(for:), then access jointLandmarks using the resulting index.

Topics

Getting Joint Landmarks

See Also

Body Data