# Crop Augmentation

位置とサイズにばらつきを加えて、対象の移動やカメラ位置に対してモデルがより頑健になるようにします。

画像の一部をランダムに作成します。これにより位置とサイズにばらつきが加わり、対象の移動やカメラ位置に対してモデルがより頑健になり、モデルの汎化性能が向上します！

* Percent: 元の画像の面積の割合 **を削除**。 (例: 元の画像で保持する面積の割合。 (例: 割合が高いほど、元の画像の量は少なくなります。)

{% hint style="warning" %}
この augmentation は annotations に影響します。現時点では、実装はフレーム外に完全に出ている annotations をすべて削除します。部分的にフレーム外に出ている annotation は、画像の端に沿うように crop します。保持されたこれらの annotations については、現在、元の object detection area の一部をそのまま保持します。

まもなく、annotation area の何パーセントを維持するかを選択できる機能を提供する予定です。たとえば、元の bounding box の area の少なくとも 80% を持つ annotations だけを保持したい場合などです。
{% endhint %}

## 例

<figure><img src="/files/b28b4f64a40941f3068ccf4a605d2b34d56af56e" alt=""><figcaption><p>元画像</p></figcaption></figure>

<figure><img src="/files/7bef51f29b2cf811f95323a6de61be1c848daa6e" alt=""><figcaption><p>20% の Crop Augmentation</p></figcaption></figure>

## Learn More

* [Random Crop Data Augmentation を実装する理由と方法](https://blog.roboflow.com/why-and-how-to-implement-random-crop-data-augmentation/)


---

# 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/dataset-versions/image-augmentation/augmentation-types/crop-augmentation.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.
