# `BB.Message.Vision.Detections.Detection`
[🔗](https://github.com/beam-bots/bb_estimator_object_detection/blob/main/lib/bb/message/vision/detections/detection.ex#L5)

One object found in a frame.

- `class` - the model's class index
- `label` - the model's label for that class, or `nil` if the model
  declares no label for it
- `score` - confidence, from 0.0 to 1.0
- `box` - `{x1, y1, x2, y2}` in frame pixels: the top-left and bottom-right
  corners, with the origin at the top-left corner of the top-left pixel

# `box`

```elixir
@type box() :: {float(), float(), float(), float()}
```

# `t`

```elixir
@type t() :: %BB.Message.Vision.Detections.Detection{
  box: box(),
  class: non_neg_integer(),
  label: String.t() | nil,
  score: float()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
