# Detection Offset

### 이 블록에 관하여

Detection Offset 블록을 사용하면 객체 감지 모델 또는 세그멘테이션 모델이 감지한 영역 주위에 패딩을 추가할 수 있습니다.

이 블록은 감지 영역 주변에 여유 공간을 추가하고 싶을 때 유용합니다. 이미지에서 감지된 영역 주변의 배경을 더 보고 싶을 때 이렇게 할 수 있습니다.

이 블록은 다음과 함께 작동합니다:

* Object detection models
* Segmentation models

<figure><img src="/files/40e789e52bc756e735c64423bc2739e3d5579ac9" alt=""><figcaption><p>Detection Offset 블록.</p></figcaption></figure>

### 이 블록에 보낼 수 있는 내용

이 블록을 사용하려면 다음이 필요합니다:

1. 입력 이미지, 비디오 프레임, 또는 이미지 내의 잘라낸 영역, 그리고;
2. Object Detection 또는 Segmentation model의 예측.

### 이 블록이 반환하는 내용

Detection Offset 블록은 감지 모델이 반환한 xyxy 좌표의 버전을 반환합니다. 이 좌표에는 패딩(여백)이 포함됩니다.

이 좌표는 이후 감지를 지원하는 어떤 블록(i.e. OCR Model 또는 Bounding Box Visualization)에도 전달할 수 있습니다.

다음은 Bounding Box Visualization으로 표시한 원시 감지 결과(왼쪽)와 오프셋(패딩)이 적용된 감지 결과를 보여주는 예시입니다:

<figure><img src="/files/65098926f9bba7dd784a29483698d5ace472d29e" alt=""><figcaption><p>이미지의 결함이 확대됩니다.</p></figcaption></figure>

참고로, 아래는 입력 이미지입니다:

<figure><img src="/files/4ac621d42382b8a9e6f974c28098c49339147a9d" alt=""><figcaption></figcaption></figure>

블록의 결과에서는 감지된 영역이 더 크게 만들어집니다.

### 사용 사례

이 블록은 이미지에서 model의 결과를 보고 싶을 때 유용합니다. 이는 테스트 중에 흔히 사용됩니다.

예측 결과를 시각화하면 Workflow 실행에 약간의 오버헤드가 추가되므로, model 결과의 위치를 확인해야 할 때에만 production에서 Visualization을 추가하는 것을 권장합니다.


---

# 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-ko/workflows/workflow-blocks/transformations/detection-offset.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.
