ComfyUI Node
cv2.ellipse (2/2)
Raw wrapper of cv2.ellipse(source, box, color, thickness?, lineType?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.ellipse (2/2)
- source
- box
- result
◄color(0, 0, 0, 0)►
◄thickness1►
◄lineTypeLINE_AA►
Categoryimage/CV/low-level/cv2 E
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| source | COMFY_MATCHTYPE_V3 | The image output(s) echo this input's format. 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. | |
| box | CV_ROTATED_RECT,STRING | Alternative ellipse representation via RotatedRect. This means that the function draws an ellipse inscribed in the rotated rectangle. A rotated rectangle: ((center_x, center_y), (width, height), angle in degrees). Wire it from cv2.fitEllipse / cv2.minAreaRect / cv2.CamShift, or type the literal (the flat (cx, cy, w, h, angle) spelling is accepted too). | |
| color | STRING | (0, 0, 0, 0) | Ellipse color. cv2 Scalar as a literal, e.g. "(0, 255, 0)" (BGR) or "(0, 255, 0, 64)" (BGRA). A bare number broadcasts to every component, so "255" means (255, 255, 255, 255). Components past the target's channel count are ignored by OpenCV. |
| thicknessopt | INT | 1-2147483648–2147483647 | Thickness of the ellipse arc outline, if positive. Otherwise, this indicates that a filled ellipse sector is to be drawn. Preset to the OpenCV default (1). |
| lineTypeopt | COMBO | LINE_AA | Type of the ellipse boundary. See #LineTypes |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | COMFY_MATCHTYPE_V3 | Echoes the 'source' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |