# `BB.Estimator.ArUco.MarkerFrames`
[🔗](https://github.com/beam-bots/bb_estimator_aruco/blob/main/test/support/marker_frames.ex#L5)

Raw `:I420` frames with ArUco markers drawn on a white canvas, for feeding
through `BB.Camera.Synthetic`'s `:frames` option.

The canvas is greyscale, so a frame is its Y plane followed by neutral (128)
U and V planes.

# `placement`

```elixir
@type placement() ::
  {atom(), non_neg_integer(), pos_integer(),
   {non_neg_integer(), non_neg_integer()}}
```

`{dictionary, id, side_in_pixels, {left, top}}`

# `expected_corners`

```elixir
@spec expected_corners(placement()) :: [{float(), float()}]
```

The corners a marker drawn at `placement` should be found at: the centres
of its outermost pixels, top-left, top-right, bottom-right, bottom-left.

# `frame`

```elixir
@spec frame([placement()]) :: binary()
```

An I420 frame with each marker drawn where its placement says. Placements
must not overlap, and each must leave a white quiet zone around its marker.

# `height`

```elixir
@spec height() :: pos_integer()
```

Frame height in pixels.

# `i420`

```elixir
@spec i420(binary()) :: binary()
```

An I420 frame from a greyscale image's pixels: the Y plane as given, then
neutral U and V planes.

# `width`

```elixir
@spec width() :: pos_integer()
```

Frame width in pixels.

---

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