Nodes/comfyui_cv/CV Draw Ellipses
ComfyUI Node

CV Draw Ellipses

Debug helper: draws ellipses given as (cx, cy, semi_axis_a, semi_axis_b, angle_deg) rows - the layout 'CV Edge Drawing' emits (a circle is simply a == b). A 4-column input is accepted as an axis-aligned ellipse (angle 0). None/empty passes the image through unchanged and count=0.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Draw Ellipses
  • source
  • ellipses
  • labels
  • image
  • count
thickness2
color(0, 255, 0)
draw_centerstrue
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.
ellipsesNPARRAYNx5 (cx, cy, semi_axis_a, semi_axis_b, angle_deg) or Nx4 (angle assumed 0); 'OpenCV Edge Drawing' plugs in directly.
thicknessINT2-1–64Outline thickness; -1 fills the ellipses.
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.
draw_centersBOOLEANtrueAlso mark each center with a small dot.
labelsoptNPARRAY(N,) integer labels: one color per cluster.

Outputs (2)

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