Nodes/comfyui_cv/CV Draw Circles
ComfyUI Node

CV Draw Circles

Debug helper: draws circles given as (x, y, radius) triples - exactly what cv2_HoughCircles outputs (1xNx3), with a center dot so concentric detections stay readable. None/empty circles pass the image through unchanged (HoughCircles returns None when nothing is found) and count=0.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Draw Circles
  • source
  • circles
  • image
  • count
thickness2
color(0, 255, 0)
draw_centerstrue
Categoryimage/CV/points

Inputs (5)

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.
circlesNPARRAY1xNx3 or Nx3 (x, y, radius) triples; cv2_HoughCircles plugs in directly.
thicknessINT2-1–64Outline thickness; -1 fills the circles.
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.
draw_centersBOOLEANtrueAlso mark each center with a small dot.

Outputs (2)

NameTypeDescription
imageCOMFY_MATCHTYPE_V3Same format as the image input.
countINTHow many circles were drawn - branch on it with if/else for the nothing-found case.