> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-jp/datasets/manage-datasets/add-tags-to-images.md).

# 画像にタグを追加

Roboflow には画像タグ付け機能があります。この機能を使うと、アップロード時に画像へタグを割り当てることができます。これらのタグは、ラベル付けのための一括割り当てに使用でき、ラベル付け対象の画像を割り当てる際の精度を高められます。さらに、画像タグを、データセットに関連付けられた Roboflow のデータセット検索のパラメータとして使用できます。

### アップロード時にタグを割り当てる

データのアップロード時に、Web インターフェースと [REST API および Python SDK](https://docs.roboflow.com/api-reference/images/upload-api)の両方でタグを割り当てられます。下の画像は、Web インターフェースを使ってアップロードした画像に関連付けるタグを指定する方法を示しています:

<figure><img src="/files/1dfc4bff01c4c9b07f86b6383f0fc013f95565d8" alt="Opening the Tag menu prior to image Upload"><figcaption><p>画像アップロード前に Tag メニューを開く</p></figcaption></figure>

### CLI

既存の画像にタグを追加・削除するには、 `roboflow image metadata` コマンドを使用します:

```bash
# 画像にタグを追加
roboflow image metadata <image_id> --tags "reviewed,v2"

# 画像からタグを削除
roboflow image metadata <image_id> --remove-tags "draft,needs-review"

# 1 回の呼び出しでタグを追加・削除
roboflow image metadata <image_id> --tags "approved" --remove-tags "pending"

# 複数の画像のタグを一括更新
roboflow image metadata img1,img2,img3 --tags "processed" --poll
```

アップロード時にタグを指定することもできます。以下を使用します: `roboflow image upload`:

```bash
roboflow image upload photo.jpg -p my-project --tag "review,v2"
```

### Images タブでタグを適用する

Images タブでタグを適用するには、タグを適用したい画像をクリックし、ページ右上の "Images Selected" ボタンをクリックしてから、"Apply tags" をクリックします。これにより、選択した画像に任意の数のタグを追加できます。

<figure><img src="/files/16a8a54edbc4484906abc5b72d505d83fe1f6a4c" alt=""><figcaption><p>選択した画像にタグを適用する</p></figcaption></figure>

### Project 全体でタグの名前を変更または削除する

Project 内のすべての画像に対してタグの名前を変更または削除するには、Project の "Settings" ページで "Tags" タブを開きます。

1. チェックボックス列を使って、変更したいタグを選択します。
2. ツールバーで "Rename" または "Delete" をクリックします。
3. 名前の変更では、各タグの新しい名前を入力し、"Review Changes" をクリックしてから "Confirm Changes" をクリックします。
4. 削除では、一覧を確認してから確定します。

### タグで画像をフィルタリングする

Roboflow ダッシュボードの Assign ページでタグを使って画像を絞り込めます:

<figure><img src="/files/c12315a5673ba3070b4c23d343611a9df8fbaebe" alt="Filtering by Existing dataset Tags from within the Assign tool"><figcaption><p>Assign ツール内から既存の dataset Tags でフィルタリングする</p></figcaption></figure>

### Versions でデータを整理するためにタグを使用する

「 [Filter by Tag](https://docs.roboflow.com/datasets/image-preprocessing#filter-by-tag) 前処理ステップを使うと、特定のデータを含めたり除外したりしたデータセットの Versions を作成できます。この前処理ステップを使って、整理されたデータの一部だけを学習またはエクスポートできます。

<figure><img src="/files/3be16fd8642852b3bd3cab0535dbe955541591c2" alt=""><figcaption><p>"Filter by Tag" 前処理ステップを使うと、特定のタグをデータセットの Version に含めるか、あるいは除外するかを指定できます。</p></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/datasets/manage-datasets/add-tags-to-images.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
