TextAnnotation
A text label on a 2D image
Parent schema
TextAnnotation
appears in the ImageAnnotations
message schema.
Schema
field | type | description |
---|---|---|
timestamp | time | Timestamp of annotation |
position | Point2 | Bottom-left origin of the text label in 2D image coordinates (pixels). |
text | string | Text to display |
font_size | float64 | Font size in pixels |
text_color | Color | Text color |
background_color | Color | Background 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:
encoding | schema |
---|---|
ROS 1 | foxglove_msgs/TextAnnotation |
ROS 2 | foxglove_msgs/msg/TextAnnotation |
JSON | foxglove.TextAnnotation |
Protobuf | foxglove.TextAnnotation |
FlatBuffers | foxglove.TextAnnotation |
OMG IDL | foxglove::TextAnnotation |
You must use the schema names specified above for Foxglove to recognize the schema.