BB.Estimator.ArUco.MarkerFrames (bb_estimator_aruco v0.1.0)

Copy Markdown View Source

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.

Summary

Types

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

Functions

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.

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.

Frame height in pixels.

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

Frame width in pixels.

Types

placement()

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

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

Functions

expected_corners(arg)

@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(placements)

@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()

@spec height() :: pos_integer()

Frame height in pixels.

i420(luma)

@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()

@spec width() :: pos_integer()

Frame width in pixels.