BB.Message.Vision.Detections (bb_estimator_object_detection v0.1.0)

Copy Markdown View Source

The objects found in one camera frame.

A reading, like BB.Message.Vision.Fiducials: one message per frame examined, whether or not anything was found. An empty detections list says the detector looked and saw nothing.

The envelope is the frame's: frame_id is the camera that captured it, and monotonic_time and wall_time are when it was captured rather than when detection finished.

Fields

Every box lies within the frame: 0.0 <= x1 <= x2 <= width and 0.0 <= y1 <= y2 <= height. BB.Message.validate/1 refuses a message whose boxes don't, with BB.Error.Invalid.Vision.BoxOutsideFrame.

Summary

Types

t()

@type t() :: %BB.Message.Vision.Detections{
  detections: [BB.Message.Vision.Detections.Detection.t()],
  height: pos_integer(),
  width: pos_integer()
}

Functions

new(frame_id, attrs)

@spec new(atom(), keyword()) :: {:ok, BB.Message.t()} | {:error, term()}