# Dataset を検索

Roboflow では、ファイル名、検索クエリ、クエリとフィルターの組み合わせで画像ファイルを検索し、特定の画像を見つけたり、データをよりよく理解したりできます。

* **特定のタグが付いた split 内の画像:**\
  `tag:factory split:train`\
  これは tag フィルターと split フィルターを使用します
* **semantic search と class フィルターを使って、欠けているラベルを見つけます**:\
  `person -class:helmet`\
  これは semantic search と class フィルターに対する反転フィルターを使用します
* **ある class を持つすべての画像に特定のフィルターが必要な場合:**\
  `class:helmet AND NOT (tag:v1 OR tag:v2)`\
  これは class フィルター、ブール論理、そして tag フィルターを使用します
* **アノテーション数が少ない幅の広い画像を見つける:**\
  `min-width:1000 max-annotations:1`\
  これは最小幅フィルターと最大アノテーション数フィルターを使用します

の完全な一覧を確認してください [search filters](#search-filters)、また下の例も参照してください

{% hint style="info" %}
これらの検索フィルターとクエリはすべて組み合わせて使えます
{% endhint %}

### Semantic Search

説明を入力して画像を検索できます。これらのクエリは、検索語に最も近い画像を検索し、対象物がまだラベル付けされていない場合でも画像を見つけるのに役立ちます。

semantic search は、フィルターセレクターを使わずにテキストクエリを入力したときに発生します（例: `filename:`)

<figure><img src="/files/a52b3fdf23eebf7722ada34f54902e1a565fc8a7" alt=""><figcaption></figcaption></figure>

### ファイル名で検索

でファイル名を検索できます `filename:` filter またはファイル名のテキストボックスを使うと、クエリが自動生成されます。

<figure><img src="/files/e2e909c1c5daef74ecedde06ab7148c34620bfe5" alt="" width="192"><figcaption></figcaption></figure>

### データセット split で検索

データセット split（train、valid、test）で画像を検索します

<figure><img src="/files/4f587b542179182df10e5687bee393b85be14f56" alt="" width="257"><figcaption></figcaption></figure>

## 検索フィルター

利用可能なフィルターは次のとおりです:

* `like-image:<IMAGE_ID>`: 画像コンテンツに基づく semantic search
* `tag` : ユーザーが付けたタグでフィルターします。
* `filename` : 指定されたファイル名に一致するファイル名を検索します。部分一致検索を行うには、クエリの先頭と末尾に \* を付けてください。
* `split` : split（train、test、valid）でフィルターします。
* `job:<JOB_ID>` : 指定された job ID の画像を表示します。
* `min-width:X` : 幅が X より大きい画像を表示します。
* `max-width:X` : 幅が X より小さい画像を表示します。
* `min-height:X` : 高さが X より大きい画像を表示します。
* `max-height:X` : 高さが X より小さい画像を表示します。
* `min-annotations:X` : 指定された数より多くのアノテーションを含む画像をフィルターします。
* `max-annotations:X` : 指定された数より少ないアノテーションを含む画像を表示します。
* `class:CLASS`: 指定されたラベルのアノテーションを少なくとも 1 つ持つ画像を表示します。

### Boolean Logic

AND、OR、NOT、および括弧を使って複数のフィルターを組み合わせ、複雑なクエリを作成できます。

`class:helmet AND NOT (tag:v1 OR tag:v2)`

### Inverted Filters

フィルターの前にマイナス記号を付けると、そのフィルターに一致する画像を除外できます。

`class:helmet -class:vest`

### Numeric Class Filters

画像内のラベル付きアイテム数でフィルターします。

`class:helmet=3 class:vest>=4`

## API

また、Roboflow 上でデータセットや画像を [Search API](https://docs.roboflow.com/api-reference/images/search#rest-api).


---

# Agent Instructions: 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/dataset-search.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.
