Table of Contents

Class SkeletonDefinition

Namespace
AiDotNet.Augmentation.Image
Assembly
AiDotNet.dll

Represents a skeleton definition for pose estimation.

public class SkeletonDefinition
Inheritance
SkeletonDefinition
Inherited Members

Remarks

A skeleton defines the structure of keypoints and their connections.

Properties

Connections

Gets or sets the skeleton connections as pairs of keypoint indices.

public IList<(int from, int to)> Connections { get; set; }

Property Value

IList<(int from, int to)>

KeypointNames

Gets or sets the keypoint names in order.

public IList<string> KeypointNames { get; set; }

Property Value

IList<string>

KeypointOKSConstants

Gets or sets the per-keypoint OKS constants (for COCO-style evaluation).

public IList<double>? KeypointOKSConstants { get; set; }

Property Value

IList<double>

SymmetricPairs

Gets or sets the left-right symmetric keypoint pairs for horizontal flip.

public IList<(int left, int right)> SymmetricPairs { get; set; }

Property Value

IList<(int from, int to)>

Remarks

When horizontally flipping, left_shoulder should swap with right_shoulder, etc.

Methods

CreateCOCO()

Creates a standard COCO human pose skeleton with 17 keypoints.

public static SkeletonDefinition CreateCOCO()

Returns

SkeletonDefinition

The COCO skeleton definition.

CreateMPII()

Creates a MPII human pose skeleton with 16 keypoints.

public static SkeletonDefinition CreateMPII()

Returns

SkeletonDefinition

The MPII skeleton definition.