Nodes/comfyui_cv/CV Draw Rays
ComfyUI Node

CV Draw Rays

Debug helper: draws a line from a shared origin to each point - render the FINAL detected bearings on top of the raw evidence (build the endpoints from angles with 'CV Polar To Points'). Connect labels to color each ray by cluster, matching 'CV Draw Points'. None/empty points pass the image through unchanged.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Draw Rays
  • source
  • points
  • labels
  • image
origin_x0.00
origin_y0.00
thickness2
color(0, 255, 255)
Categoryimage/CV/points

Inputs (7)

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 ray endpoints.
origin_xFLOAT0.00-1000000–1000000X pixel coordinate of the reference origin (e.g. the dial center, anchor, or ray start).
origin_yFLOAT0.00-1000000–1000000Y pixel coordinate of the reference origin (e.g. the dial center, anchor, or ray start).
thicknessINT21–64Ray line width in pixels.
colorSTRING(0, 255, 255)Color as a single value (broadcast to all channels) or BGR tuple, e.g. '255' or '(0, 255, 255)'. Shorter tuples are zero-padded; longer tuples are truncated. Ignored when labels are connected.
labelsoptNPARRAY(N,) integer labels: one color per cluster.

Outputs (1)

NameTypeDescription
imageCOMFY_MATCHTYPE_V3Same format as the image input.