Skip to main content

TextAnnotation

A text label on a 2D image

Parent schema

TextAnnotation appears in the ImageAnnotations message schema.

Schema

fieldtypedescription
timestamptimeTimestamp of annotation
positionPoint2Bottom-left origin of the text label in 2D image coordinates (pixels)
textstringText to display
font_sizefloat64Font size in pixels
text_colorColorText color
background_colorColorBackground fill color

Reference implementations

Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:

encodingschema
ROS 1foxglove_msgs/TextAnnotation
ROS 2foxglove_msgs/msg/TextAnnotation
JSONfoxglove.TextAnnotation
Protobuffoxglove.TextAnnotation
FlatBuffersfoxglove.TextAnnotation
OMG IDLfoxglove::TextAnnotation

You must use the schema names specified above for Foxglove to recognize the schema.