Appearance
Draw Polygons
Overview
Generates an SVG overlay that draws polygon outlines and labels on top of a source image. This node is typically used for visualization and debugging to see exactly where objects were detected.
Use Draw Polygons when:
- You want to visualize detections in the browser or on a dashboard.
- You need to generate an annotated image for report generation.
⚠️ Warning
This node converts the image to an image_svg type. Polygons can only be added once using this node.
Inputs
| Name | Type | Description |
|---|---|---|
| input_image | image | The base image to draw on. |
| polygon_list | list[polygon] | The polygons, points, or lists of polygons to be rendered. |
Outputs
| Name | Type | Description |
|---|---|---|
| output_image | image_svg | The resulting image with the SVG overlay. |
Parameters
| Parameter | Default | Valid values | Unit | Tunable |
|---|---|---|---|---|
| Rotation | 0 | 0, 90, 180, 270 | ° | ✅ |
Rotation
The rotation angle applied to the SVG overlay to match the image orientation.
Example
Visualize defect detections
Connect a list of defect polygons and the original camera feed to Draw Polygons.
Configuration:
- Rotation:
0
Result: An SVG image where all defects are highlighted with outlines.
Related links
Reference:
- AI Model — runs inference using a specific model
- Annotate Polygons — sets color and labels for drawing
- Polygon Blur — obscures regions in the image