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
@type placement() :: {atom(), non_neg_integer(), pos_integer(), {non_neg_integer(), non_neg_integer()}}
{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.
@spec height() :: pos_integer()
Frame height in pixels.
An I420 frame from a greyscale image's pixels: the Y plane as given, then neutral U and V planes.
@spec width() :: pos_integer()
Frame width in pixels.