BB.Error.Invalid.Vision.CornerOutsideFrame exception (bb_estimator_aruco v0.1.0)

Copy Markdown View Source

A marker's corner lies outside the frame the marker is said to be found in.

A detector only reports what it can see, so a corner outside the frame means the coordinates and the dimensions disagree - most often corners scaled for a different frame size, or width and height swapped - and a consumer would place the marker in the wrong part of the image. So the message is refused rather than built.

Summary

Types

t()

@type t() :: %BB.Error.Invalid.Vision.CornerOutsideFrame{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  corner: {float(), float()},
  height: pos_integer(),
  id: non_neg_integer(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term(),
  width: pos_integer()
}

Functions

exception(args)

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

Create an Elixir.BB.Error.Invalid.Vision.CornerOutsideFrame without raising it.

Keys

  • :id
  • :corner
  • :width
  • :height