编辑 | blame | 历史 | 原始文档

---
title: Keypoint Labeling
type: templates
category: Computer Vision
cat: computer-vision
order: 120
meta_title: Image Keypoint Data Labeling Template

meta_description: Template for adding keypoints to images with Label Studio for your machine learning and data science projects.

If you want to identify specific key points for facial recognition and other use cases, use this template to perform key point labeling on images.



Open in Label Studio

Interactive Template Preview

Labeling Configuration

<View>
  <KeyPointLabels name="kp-1" toName="img-1">
    <Label value="Face" background="red" />
    <Label value="Nose" background="green" />
  </KeyPointLabels>
  <Image name="img-1" value="$img" />
</View>

About the labeling configuration

All labeling configurations must be wrapped in View tags.

Use the KeyPointLabels control tag to add the option to draw labeled key points:
xml <KeyPointLabels name="kp-1" toName="img-1">

Use the Label control tag with the KeyPointLabels to specify the value and color of the key points:
xml <Label value="Face" background="red" /> <Label value="Nose" background="green" /> </KeyPointLabels>

Use the Image object tag to specify the image key:
xml <Image name="img-1" value="$img" />

Related tags