ComfyUI Node
cv2.mean
Raw wrapper of cv2.mean(src, mask?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.mean
- src
- mask
- mean
Categoryimage/CV/low-level/cv2 M
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY,IMAGE,MASK | input array that should have from 1 to 4 channels so that the result can be stored in Scalar_ . 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. | |
| maskopt | NPARRAY,IMAGE,MASK | optional operation mask ot type CV_8U, CV_8S or CV_Bool. 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 |
|---|---|---|
| mean | STRING | optional operation mask ot type CV_8U, CV_8S or CV_Bool. 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. |