ComfyUI Node
cv2.arrowedLine
Raw wrapper of cv2.arrowedLine(source, pt1, pt2, color, thickness?, line_type?, shift?, tipLength?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.arrowedLine
- source
- pt1
- pt2
- result
◄color(0, 0, 0, 0)►
◄thickness1►
◄line_typeLINE_AA►
◄shift0►
◄tipLength0.1000►
Categoryimage/CV/low-level/cv2 A
Inputs (8)
| 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. | |
| pt1 | CV_TUPLE | 0,0 | The point the arrow starts from. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
| pt2 | CV_TUPLE | 0,0 | The point the arrow points to. One value with 2 components (x, y) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place. |
| color | STRING | (0, 0, 0, 0) | Line 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 | Line thickness. Preset to the OpenCV default (1). |
| line_typeopt | COMBO | LINE_AA | Type of the line. See #LineTypes |
| shiftopt | INT | 0-2147483648–2147483647 | Number of fractional bits in the point coordinates. Preset to the OpenCV default (0). |
| tipLengthopt | FLOAT | 0.1000-1e+38–1e+38 | The length of the arrow tip in relation to the arrow length Preset to the OpenCV default (0.1). |
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. |