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

Copy Markdown View Source

One object found in a frame.

  • class - the model's class index
  • label - the model's label for that class, or nil if the model declares no label for it
  • score - confidence, from 0.0 to 1.0
  • box - {x1, y1, x2, y2} in frame pixels: the top-left and bottom-right corners, with the origin at the top-left corner of the top-left pixel

Summary

Types

box()

@type box() :: {float(), float(), float(), float()}

t()

@type t() :: %BB.Message.Vision.Detections.Detection{
  box: box(),
  class: non_neg_integer(),
  label: String.t() | nil,
  score: float()
}