ComfyUI Node
cv2.sumElems
Raw wrapper of cv2.sumElems(src). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.sumElems
- src
- sum
Categoryimage/CV/low-level/cv2 S
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY,IMAGE,MASK | - - - 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. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| sum | STRING | - - - A cv2 Scalar as the pack's literal spelling "(c0, c1, c2, c3)" - one value per channel, and exactly what every colour / borderValue input takes. |