Skip to content

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

NameTypeDescription
input_imageimageThe base image to draw on.
polygon_listlist[polygon]The polygons, points, or lists of polygons to be rendered.

Outputs

NameTypeDescription
output_imageimage_svgThe resulting image with the SVG overlay.

Parameters

ParameterDefaultValid valuesUnitTunable
Rotation00, 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.

Reference: