> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/zh/annotations/annotation-tools/points-polylines-and-skeletons.md).

# 关键点、折线与骨架

在 Unitlab 中用关键点（Keypoint）标记抓取点、角点和缺陷等特征点，用折线（Polyline）描绘线缆、裂缝和车道线等开放路径，并用骨架（Skeleton）把关节连接成机械臂或人体姿态，用于姿态估计和机器人学习。

这三种工具标记的是位置和路径，而不是区域。可用于抓取点、夹爪路径和机械臂姿态。

![绿色工作台上的机械臂用 10 个关节的骨架标注，记号笔上有一个抓取点](https://content.gitbook.com/content/vbN1G7M3hTB0Q58dqxlj/blobs/hlSyRGQXt6UxFATayofM/tools-skeleton-hero.webp)

## 关键点 <a href="#keypoint" id="keypoint"></a>

关键点表示一个位置，例如抓取点、角点或缺陷。

1. 按 `U` 或选择 **Keypoint**。
2. 选择一个点类别，例如 **Grasp point**。
3. 单击目标位置。每次单击添加一个新点。

在 **Pan**（`V`）模式下拖动点即可移动。如果小点难以抓取，请在[工具设置](https://docs.unitlab.ai/documentation/zh/annotations/workbench-settings.md)中调高 **Primitive keypoint sensitivity**。

## 折线 <a href="#polyline" id="polyline"></a>

折线是一条开放的线，例如夹爪路径、线缆、裂缝或车道标线。

1. 按 `L` 或选择 **Polyline**。
2. 选择一个线类别，例如 **Gripper path**。
3. 沿路径单击，每次单击添加一个点。
4. 按 `Esc` 或双击完成。

如需延长已保存的线，选中它，轻按 `Shift` 后单击。点会从离指针最近的端点开始添加。单击线条可在其上插入一个点。

## 骨架 <a href="#skeleton" id="skeleton"></a>

骨架把多个点连接成一个结构，例如机械臂的关节，或用于姿态估计的人体关节。

1. 按 `J` 或选择 **Skeleton**。
2. 选择一个骨架类别，例如 **Robot arm**。
3. 依次单击各个关节，例如从手到肘再到肩。
4. 如需分叉，从已有关节开始一条新链。点会吸附到该关节，两条链连接在一起。
5. 按 `Esc` 完成。

{% hint style="info" %}
开启 [Auto select](https://docs.unitlab.ai/documentation/zh/annotations/annotation-tools/auto-select.md) 后，单击已保存的骨架或折线即可插入点。轻按 `Shift` 可从最近的端点继续绘制。
{% endhint %}

## 键盘快捷键 <a href="#keyboard-shortcuts" id="keyboard-shortcuts"></a>

| 操作            | 快捷键             |
| ------------- | --------------- |
| 关键点 / 折线 / 骨架 | `U` / `L` / `J` |
| 删除最后一个点       | `Backspace`     |
| 完成线或骨架        | `Esc`           |
| 从最近的端点继续      | 轻按 `Shift`      |

相关内容：[标注工具](https://docs.unitlab.ai/documentation/zh/annotations/annotation-tools.md) · [Auto select](https://docs.unitlab.ai/documentation/zh/annotations/annotation-tools/auto-select.md) · [视频标注](https://docs.unitlab.ai/documentation/zh/annotations/video-annotation.md)

<sub>机器人图像：</sub>[<sub>DROID 数据集</sub>](https://droid-dataset.github.io/)<sub>（Khazatsky 等，2024），CC BY 4.0。</sub>
