> 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/cuboid.md).

# 立方体标注工具

在 Unitlab 中使用立方体（Cuboid）标注工具，在图像、视频帧、PDF、地理空间和病理数据上绘制伪 3D 立方体框，记录物体的位置、尺寸和深度，并了解如何编辑立方体以及为何导出时需选择 UUEF 格式。

立方体是在平面图像上绘制的 3D 框。它可以表示物体的位置和深度，例如从斜角度看到的微波炉、家电或包裹。

![厨房台面上的微波炉用绿色立方体标注，旁边的咖啡机用矩形框标注](https://content.gitbook.com/content/vbN1G7M3hTB0Q58dqxlj/blobs/kTKvi2y6wcA9FyBy5k6t/tools-cuboid-hero.webp)

## 开始之前 <a href="#before-you-begin" id="before-you-begin"></a>

* 项目中需要有标注类型为 **Cuboid** 的类别。
* 立方体适用于图像、视频、PDF 页面、地理空间和病理数据。医学影像项目不提供立方体。LiDAR 场景请参见 [LiDAR 点云标注](https://docs.unitlab.ai/documentation/zh/annotations/lidar-annotation.md)。

## 绘制立方体 <a href="#draw-a-cuboid" id="draw-a-cuboid"></a>

1. 按 `N` 或选择 **Cuboid**。
2. 选择一个立方体类别，例如 **Appliance 3D**。
3. 在离你最近的物体正面上拖出一个矩形后松开。
4. Unitlab 会添加一个深度较小的背面。拖动其角点和边上的控制点，直到背面与物体的远端吻合。

## 编辑立方体 <a href="#edit-a-cuboid" id="edit-a-cuboid"></a>

* 拖动一个角点可移动该角。
* 拖动一条边可移动整个面。
* 在 **Pan**（`V`）模式下拖动立方体内部可移动整个立方体。

开启 [Auto select](https://docs.unitlab.ai/documentation/zh/annotations/annotation-tools/auto-select.md) 后，将指针停在立方体上即可编辑。`Shift` + 单击可选中下层的形状。

{% hint style="info" %}
立方体导出为 Unitlab 自有格式。COCO 和 YOLO 没有立方体类型，因此导出立方体时请选择 UUEF 格式。
{% endhint %}

相关内容：[矩形框标注工具](https://docs.unitlab.ai/documentation/zh/annotations/annotation-tools/bounding-box.md) · [发布与导出格式](https://docs.unitlab.ai/documentation/zh/releases/export-formats-and-source-inclusion.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>
