robot_msg_viz

Detection2DArray

Every detection in one image: a box per object, one colour per class, each labelled with class and score.

robot_msgs.vision.Detection2DArray · its fields and functions on robotmsgs.com

Download .rrd874 KB

Sample data: vision-Detection2DArray.rrd (874 KB), one message, built in code from a seeded sample. The layout (a Rerun blueprint) is inside the file.

Use it in your code

import robot_msg_viz as viz
from robot_msgs.vision import Detection2DArray

viz.show(detections)  # the boxes, class-coloured and labelled

# over the image they came from: log both under one name
with viz.stream("camera") as live:
    live.log(camera=image)  # a robot_msgs.sensor.Image
    live.log(camera=detections)

Object detection