Appearance
Annotate Polygons
Overview â
Assigns visual attributes to a list of polygons â color, line thickness, opacity, and labels. Use this node to define how detections from an AI model or any other polygons should appear when rendered by the Draw Polygons node.
Use Annotate Polygons when:
- You want to color-code different object classes (e.g., green for "pass", red for "fail").
- You need to add text labels to detected objects for visual inspection.
- You have multiple detection categories that each need distinct styling â add one Annotate Polygons node per category.
đĄ Tip
This node only defines visual attributes; it does not draw polygons on the image. Connect its output to a Draw Polygons node to render the results.
Inputs â
| Name | Type | Description |
|---|---|---|
| polygon_list | list[polygon] | The list of polygons to receive the visual attributes. |
| label | string | An optional text label applied to every polygon in the list. |
Outputs â
| Name | Type | Description |
|---|---|---|
| annotated_polygon_list | list[polygon] | The polygons with the assigned color, thickness, and label properties. |
Parameters â
| Parameter | Default | Valid values | Unit | Tunable |
|---|---|---|---|---|
| Polygon Color | #00FF00 | hex string | - | â |
| Label Color | #FFFFFF | hex string | - | â |
| Label Font Size | 14 | 8 â 48 | px | â |
| Label Position | top_left | top_left, bottom_left | - | â |
| Line Thickness | 2 | 1 â 5 | px | â |
| Opacity | 0 | 0 â 100 | % | â |
Polygon Color â
The hex color code for the polygon outlines. Click the color preview to open a dialog with HEX and RGB inputs, or select a color visually from the gradient palette.

Label Color â
The hex color code for the label text. Uses the same color picker as the Polygon Color field.
Label Font Size â
The size of the text used for polygon labels, in pixels.
Label Position â
Determines where the text label is anchored relative to the polygon:
- top_left (default) â top-left corner of the polygon bounding box.
- bottom_left â bottom-left corner of the polygon bounding box.
If a label would extend beyond the image boundary, the position switches automatically to keep it visible. The label background uses the polygon's color for easy visual association.
âšī¸ Label Positioning
Labels are automatically repositioned to avoid overflow outside the image. If a label would extend beyond the top, bottom, or right edge of the image, it switches to the opposite vertical position or shifts horizontally to stay visible.
Line Thickness â
The width of the polygon borders in pixels.
Opacity â
The fill transparency of the polygons. 0% is fully transparent, 100% is fully opaque.
Example â
Defect inspection with two categories â
A model identifies products as either acceptable or defective. Use two Annotate Polygons nodes: one colors acceptable items green with a "Pass" label, the other colors defective items red with a "Defect" label.
Configuration (defect node):
- Polygon Color:
#FF0000 - Label Font Size:
18
Result: Defective polygons appear with a red border and an 18 px "Defect" label. Acceptable polygons appear green with "Pass".

Related links â
Reference:
- Draw Polygons â renders the annotated polygons onto an image
- Polygon Blur â applies Gaussian blur to polygon regions