> 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/deploy/vision-events.md).

# Vision Events

## 概要

Vision Events は Roboflow のデータストアで、デプロイ済みのコンピュータビジョンモデルからの視覚情報とともに、欠陥の検出や在庫数のカウントのような重要なイベントを記録できます。これにより、本番環境であなたのビジョンシステムが観測したすべての内容を、検索可能でフィルタリング可能な履歴として残せます。

## Vision Event とは？

Vision Event は、モデルが画像を処理したときに作成されるタイムスタンプ付きの記録です。各イベントでは、必要に応じて以下を記録できます：

* **画像**：処理された元画像と、それに関連付けられた出力画像
* **Predictions**：モデルが返す物体検出、分類、インスタンスセグメンテーション、またはキーポイント
* **ソースメタデータ**：どのデバイス、ストリーム、またはワークフローがイベントを生成したか
* **カスタムメタデータ**：あなたのドメイン向けに定義するキーと値のペア（例： `line_number`, `shift`, `part_number`)

プログラムからアクセスする場合は、 [Vision Events API Reference](https://docs.roboflow.com/developer/rest-api/vision-events).

{% embed url="<https://www.youtube.com/watch?v=4HlYG1MacRk>" %}

## Key Concepts

### Use Cases

A **Use Case** は、共通の目的とカスタムメタデータ構造を共有するイベントをまとめます。同じ Use Case 内のイベントは通常、同様のメタデータフィールドを送信するため、一貫してフィルタリングやクエリができます。

たとえば、「Defect Detection」Use Case では、イベントが複数の工場やカメラの場所から来る場合でも、常に `line_id`, `shift`、および `part_number` を含めることがあります。メタデータ構造が本質的に異なる場合は、別の Use Case を作成してください（例：「PPE Compliance」では `zone` と `alert_type` を追跡します）。


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/deploy/vision-events.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
