<br />

Represents one detection by a detection task.

**Signature:**

```typescript
export declare interface Detection 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [categories](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.detection.md.txt#detectioncategories) |   | Category\[\] | A list of `Category` objects. |
| [boundingBox](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.detection.md.txt#detectionboundingbox) |   | BoundingBox | The bounding box of the detected objects. |
| [keypoints](https://developers.google.com/edge/api/mediapipe/js/tasks-vision.detection.md.txt#detectionkeypoints) |   | NormalizedKeypoint\[\] | List of keypoints associated with the detection. Keypoints represent interesting points related to the detection. For example, the keypoints represent the eye, ear and mouth from face detection model. Or in the template matching detection, e.g. KNIFT, they can represent the feature points for template matching. Contains an empty list if no keypoints are detected. |

## Detection.categories

A list of `Category` objects.

**Signature:**

```typescript
categories: Category[];
```

## Detection.boundingBox

The bounding box of the detected objects.

**Signature:**

```typescript
boundingBox?: BoundingBox;
```

## Detection.keypoints

List of keypoints associated with the detection. Keypoints represent interesting points related to the detection. For example, the keypoints represent the eye, ear and mouth from face detection model. Or in the template matching detection, e.g. KNIFT, they can represent the feature points for template matching. Contains an empty list if no keypoints are detected.

**Signature:**

```typescript
keypoints: NormalizedKeypoint[];
```