ComfyUI Node
CV Draw Connections
Debug helper: draws a line for every (i, j) EDGE between points[i] and points[j] - a skeleton / graph over a point set. Feed the 'landmarks' + 'connections' of 'OpenCV MediaPipe Hand Pose' to draw the hand bones, or any Ex2 index-pair array. Out-of-range indices are skipped; None/empty points or edges pass the image through unchanged (count=0). Connect labels to color each edge by cluster, matching 'CV Draw Points'.
CV Draw Connections
- source
- points
- edges
- labels
- image
- count
◄thickness2►
◄color(255, 255, 255)►
Categoryimage/CV/points
Inputs (6)
| 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. | |
| points | NPARRAY | Nx1x2 points the edges index into (or None). | |
| edges | NPARRAY | Ex2 int index pairs; each row (i, j) connects points[i] to points[j]. None/empty -> passthrough. | |
| thickness | INT | 21–64 | Line width in pixels. |
| color | STRING | (255, 255, 255) | Color as a single value (broadcast to all channels) or BGR tuple, e.g. '255' or '(255, 255, 255)'. Shorter tuples are zero-padded; longer tuples are truncated. Ignored when labels are connected. |
| labelsopt | NPARRAY | (E,) integer labels: one color per edge cluster. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Same format as the image input. |
| count | INT | How many edges were actually drawn (valid indices). |