Keypoint annotation (pose estimation)

Keypoint annotation marks named points on an object, such as the joints of a body or the corners of a part, connected into a skeleton; it is the training data for pose estimation, the task of predicting those points on new images.

AnnotationAlso called Pose estimation, Skeleton annotation, Landmark annotation

What one keypoint label holds

  • A fixed list of named points and the edges between them, shared by every instance of the class.
  • A visibility flag per point. In COCO it is 0 for not labeled, 1 for labeled but hidden, 2 for labeled and visible.
  • Usually a bounding box around the instance, which top-down pose models crop before predicting points.

How pose predictions are scored

Box IoU has no meaning for points, so COCO compares a predicted skeleton with the true one through object keypoint similarity (OKS), then computes average precision over OKS thresholds the way mAP does over IoU.

OKS = Σᵢ exp(−dᵢ² / (2 · s² · kᵢ²)) · δ(vᵢ > 0) / Σᵢ δ(vᵢ > 0)
dᵢ is the distance between predicted and true point i, s the object scale (the square root of its area), kᵢ a per-point constant that is larger for points people place less precisely, such as hips, and vᵢ the visibility flag.

Mistakes to plan for

  • Left and right swapped on people seen from behind. State the convention in the annotation guidelines.
  • Guessing hidden points on some images and leaving them out on others.
  • Horizontal flips during training without swapping left and right point names.

Keypoints in Supervisely

In the image labeling tool a skeleton of named points is defined once and placed on every person, animal or part, and points out of sight can be disabled. The YOLO apps train pose models; the README of the earlier YOLOv8 training app asks for each object to be labeled with both a keypoint graph and a box, matched by object binding or by the distance between their centres. ViTPose predicts skeletons inside boxes from a detector, and CoTracker tracks a keypoint graph through video. Guides: human pose estimation and animal pose estimation.

Frequently asked questions.

What are keypoints in computer vision?

Specific points on an object, such as joints of a person, corners of a face or parts of a machine, often connected into a skeleton. Pose estimation models learn to predict them.

What is the difference between keypoint and landmark annotation?

They are the same idea under two names: points placed at defined positions on an object. Landmark is more common for faces, keypoint for body pose and objects.