> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/scene-metadata/scene-auto-tagger.md).

# Scene Auto Tagger

使用 Scene Auto Tagger 为场景对象添加名称和描述，查看建议，并应用它们供你的 Convai 角色使用。

场景自动标记器可为 Unreal Engine 关卡中的对象生成名称和描述。你可以先检查这些建议，再将其应用为场景元数据——Convai 角色会利用这些信息识别周围的对象。可以先从博物馆里的几件展品、商店中的道具，或自己场景中的对象开始。

观看博物馆演示，了解设置、审核和应用的工作流程：

{% embed url="<https://www.youtube.com/watch?v=HB4YPj3CPww>" %}
场景自动标记器演示
{% endembed %}

## 前提条件

* [ ] 在 Windows 上，于 Unreal Editor 中打开的 Unreal Engine 项目，且已安装 [Convai Unreal Engine 插件](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/getting-started/install-the-convai-plugin.md).
* [ ] 已通过 Unreal Engine 中的 **Convai** 窗口登录，并且 Convai 帐户中已有一个角色。
* [ ] 已打开包含待标记对象的关卡。

## 浏览对象

{% stepper %}
{% step %}

### 打开场景自动标记器

在 Unreal Editor 工具栏中选择 **场景自动标记器** ，或者打开 **工具** 并在 **场景自动标记器** 部分中选择 **Convai** 。

首次使用时，请阅读 **允许 AI 分析场景？** 并选择 **接受** 以继续。该工具会将捕获的图像和你提供的可选指导发送给 Convai 进行分析。
{% endstep %}

{% step %}

### 选择角色并添加指导

使用 **搜索角色** 查找并选择一个角色。场景自动标记器会利用该角色的 AI 配置和知识库来帮助识别对象并撰写描述。请选择知识内容与场景相关的角色，例如，为展品陈列室选择你的博物馆导览角色。生成的标签会保存到场景对象上，供关卡中的 Convai 角色使用。

要添加参考资料，请选择 **在 Convai 中打开**，更新角色的 **知识库**，然后返回 Unreal Engine。展品说明或参考文档可以为分析提供更多背景信息。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/yHKfdu1rYhCR3uCioi1L/.gitbook/assets/unreal-scene-auto-tagger-character.png" alt="Livia selected in the character list, with Open in Convai beneath it."><figcaption><p>选择一个角色，其 AI 配置和知识将用于指导分析。</p></figcaption></figure>

在 **场景描述（可选）**&#x4E0B;，描述场景环境，例如 `A museum gallery with statues and paintings.` 或者在关卡视口中调整环境画面，然后选择 **根据当前视图起草**。继续之前请检查生成的文本。

使用 **描述重点（可选）** 来指导描述内容。例如，输入 `Focus on each exhibit's material, shape, and visible details.`
{% endstep %}

{% step %}

### 选择扫描范围

展开 **分析选项** 并选择 **范围**:

* **已选择的 Actor** 扫描你在关卡编辑器中选择的符合条件的对象。这是扫描一小组对象的实用起点。
* **当前关卡** 在当前关卡中查找重要对象。

选择 **精确** 适用于对美术作品、文本或特定主题进行更精细的分析。此过程耗时较长。

清除 **重新分析已有标签的对象** 如果你想跳过已添加 Convai Object Component 的对象。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/ao3Yd1ZqM8zcOZZ9EVug/.gitbook/assets/unreal-scene-auto-tagger-scope.jpg" alt="Analysis options with Current Level and Accurate selected, plus the Explore current level button."><figcaption><p>在开始探索前，选择要扫描的对象和分析质量。</p></figcaption></figure>
{% endstep %}

{% step %}

### 开始分析

选择 **探索已选择的 Actor** 或 **探索当前关卡**，具体取决于你的扫描范围。等待分析完成。审核列表中会显示对象建议。

在应用建议之前，你的关卡不会发生任何更改。
{% endstep %}
{% endstepper %}

## 审核并完善建议

选择一行以查看对象的截图、 **名称**和 **描述**。直接编辑文本，使其符合场景。使用简短自然的名称，例如 `Bronze horse`，并添加有助于角色谈论该对象的描述。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/foBDj0Knn8hmskei0Jtg/.gitbook/assets/unreal-scene-auto-tagger-review.jpg" alt="Scene Auto Tagger review list beside the captured image of a museum statue."><figcaption><p>选择一个对象，以查看用于生成其建议的图像。</p></figcaption></figure>

### 更正细节

选择对象，然后在 **完善建议**下输入更正内容。例如，如果工具将某件展品识别为大象，却漏掉了它的名称，请输入 `This is the Konark Elephant.` 选择 **添加备注并分析** ，使用该更正内容和已保存的图像生成修订后的名称和描述。将其纳入之前，请先检查结果。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/yhDaPv8cW919XYrik5kT/.gitbook/assets/unreal-scene-auto-tagger-refine.png" alt="An elephant selected with a correction entered under Refine suggestion."><figcaption><p>补充缺失的细节，然后选择“添加备注并分析”。</p></figcaption></figure>

### 更改拍摄角度

如果图像未显示正面或重要细节，请选择图像下方的 **编辑视图** 。拖动可环绕旋转，按住 Shift 拖动或右键拖动可平移，使用鼠标滚轮可缩放。这些控件会移动拍摄摄像机，而不会移动关卡中的对象。

选择 **使用并分析** ，根据调整后的视图生成新建议，然后检查更新后的名称和描述。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/f7RLnEGwV0cDoNZR3Leu/.gitbook/assets/unreal-scene-auto-tagger-edit-view.png" alt="Capture view editing controls beneath a statue preview."><figcaption><p>将你希望工具识别的细节纳入画面，然后使用新视图进行分析。</p></figcaption></figure>

### 不纳入某个对象

不要将不需要的建议纳入最终集合。若要整理列表，请勾选相应行，然后选择 **更多 > 从此次审核中移除已勾选项**。这会移除审核条目，但不会删除关卡中的对象。

## 应用并验证标签

{% stepper %}
{% step %}

### 纳入所需对象

勾选要保留的建议旁边的复选框，然后选择 **包含已勾选项**。选择某一行进行检查，不会将其包含在应用范围内。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/eZiA0iRaKVvPrIdSeCCB/.gitbook/assets/unreal-scene-auto-tagger-apply.png" alt="Checked review rows with Include checked and Apply controls above the list."><figcaption><p>包含所需的建议，然后将其应用到关卡。</p></figcaption></figure>
{% endstep %}

{% step %}

### 应用已包含的建议

选择 **应用**，后面会显示待应用的已包含建议数量。此工具会在这些关卡对象上添加或更新 **Convai 对象组件** 。
{% endstep %}

{% step %}

### 验证对象并保存

在关卡编辑器中选择一个已添加标签的对象。在 **详情**中，选择 Scene Auto Tagger 添加的 Convai 对象组件。它可能会在组件列表中显示为 ConvaiAutoTagObject\_0。在 Object Entry 下，确认 Name 和 Description 与你应用的建议一致。

<figure><img src="https://content.gitbook.com/content/EtUJA212Zc1S9ACc8T4l/blobs/YHvGLh23ScwdlabZcmEP/.gitbook/assets/unreal-scene-auto-tagger-result.png" alt="A tagged museum object with its Convai Object Component and generated description in Details."><figcaption><p>确认关卡对象上生成的名称和描述。</p></figcaption></figure>

保存关卡以保留更改。应用标签和保存是两个独立操作。
{% endstep %}
{% endstepper %}

## 对标记任务进行故障排除

### 对象需要处理

**症状：** 对象显示在 **需要处理** 下方，但没有可靠的建议。

**原因：** 分析未能根据捕获的图像得出可靠结果。

**解决方法：** 选择对象并检查其图像。使用 **编辑视图** 和 **使用并分析** 尝试其他视图。如果不想为对象添加标签，请勿将其包含在内。

**验证：** 包含对象之前，请检查新的名称和描述。

### “应用”不可用

**症状：** “ **应用** ”按钮处于禁用状态。

**原因：** 分析或视图编辑仍在进行，或者没有已完成且已包含的建议。

**解决方法：** 等待分析完成；如果 **编辑视图** 仍处于打开状态，请完成或取消编辑。至少勾选一条已完成的建议，然后选择 **包含已勾选项**.

**验证：** “ **应用** ”按钮会显示待应用建议的数量。

如果已应用标签，但角色无法识别这些对象，请参阅 [场景元数据故障排除](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/scene-metadata/troubleshoot-scene-metadata.md).

## 后续步骤

在对话中测试带标签的对象，或添加更多场景信息：

{% content-ref url="/pages/0feb18e88feac4367d421728b98f739c505dcd5a" %}
[场景元数据快速开始](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/scene-metadata/scene-metadata-quick-start.md)
{% endcontent-ref %}

{% content-ref url="/pages/5b34043c604b8f8fd8088c66f01ea7887fcd8846" %}
[场景元数据组件参考](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/scene-metadata/scene-metadata-component-reference.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/scene-metadata/scene-auto-tagger.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
