Skip to 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

position

The coordinate uses the top-left corner of the top-left pixel of the image as the origin.

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.

Flora is developed on the source code of Foxglove and Lichtblick, adhering to the MPL 2.0 license.