BB.Error.Invalid.Vision.BoxOutsideFrame exception (bb_estimator_object_detection v0.1.0)

Copy Markdown View Source

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

Raised by 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.

Summary

Types

t()

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

Functions

exception(args)

@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