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.
CV Draw Circles
- source
- circles
- image
- count
◄thickness2►
◄color(0, 255, 0)►
◄draw_centerstrue►
Categoryimage/CV/points
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| source | COMFY_MATCHTYPE_V3 | Image 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. | |
| circles | NPARRAY | 1xNx3 or Nx3 (x, y, radius) triples; cv2_HoughCircles plugs in directly. | |
| thickness | INT | 2-1–64 | Outline thickness; -1 fills the circles. |
| color | STRING | (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_centers | BOOLEAN | true | Also mark each center with a small dot. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Same format as the image input. |
| count | INT | How many circles were drawn - branch on it with if/else for the nothing-found case. |