Nodes/comfyui_cv/CV Draw Points
ComfyUI Node

CV Draw Points

Debug helper: marks each point with a circle, square, cross, star, diamond or triangle. Connect the labels from the 'CV K-Means Points' blueprint to color the points by cluster (the same label always gets the same color). When two point sets go onto the SAME image, give them different SHAPES or radii, not just different colors - shape is the half of the distinction that survives colour blindness, greyscale and a busy photo underneath. None/empty points pass the image through unchanged.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Draw Points
  • source
  • points
  • labels
  • image
marker_radius5
color(0, 255, 0)
marker_shapefilled circle
Categoryimage/CV/points

Inputs (6)

NameTypeDefaultDescription
sourceCOMFY_MATCHTYPE_V3Image or mask to draw on (a copy is made). Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
pointsNPARRAYNx1x2 points to mark (or None -> passthrough).
marker_radiusINT51–128Radius of each filled circle marker, in pixels.
colorSTRING(0, 255, 0)Color as a single value (broadcast to all channels) or BGR tuple, e.g. '255' or '(0, 255, 0)'. Shorter tuples are zero-padded; longer tuples are truncated. Ignored when labels are connected.
labelsoptNPARRAY(N,) integer labels: one color per cluster.
marker_shapeoptCOMBOfilled circleMarker shape. Two point sets drawn on one image in two colours are the same picture to a colour-blind viewer - give the second set a different shape (or radius) and the distinction survives. 'filled circle' is the original marker.

Outputs (1)

NameTypeDescription
imageCOMFY_MATCHTYPE_V3Same format as the image input.