# `BB.Error.Invalid.Vision.BoxOutsideFrame`
[🔗](https://github.com/beam-bots/bb_estimator_object_detection/blob/main/lib/bb/error/invalid/vision/box_outside_frame.ex#L5)

A detection's box extends beyond the frame it was found in.

Raised by `c:BB.Message.validate/1` on a `BB.Message.Vision.Detections`.
The estimator clips every box to the frame, so this means a detections
message built some other way.

# `t`

```elixir
@type t() :: %BB.Error.Invalid.Vision.BoxOutsideFrame{
  __exception__: term(),
  box: {float(), float(), float(), float()},
  bread_crumbs: term(),
  class: term(),
  height: pos_integer(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term(),
  width: pos_integer()
}
```

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Vision.BoxOutsideFrame{
  __exception__: term(),
  box: term(),
  bread_crumbs: term(),
  class: term(),
  height: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term(),
  width: term()
}
```

Create an `Elixir.BB.Error.Invalid.Vision.BoxOutsideFrame` without raising it.

## Keys

- :box
- :width
- :height

---

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