ComfyUI Node
CV Scalar
Types a constant vector for NPARRAY sockets that expect one: cv2_inRange's lowerb/upperb bounds, cv2_randn's mean/stddev, cv2_compare's src2, or polynomial coefficients for 'CV Polynomial Radial Map'. Write it as a literal like '(35, 60, 60)' (or a single number, which becomes '(N, N, N, N)'). Up to 32 elements for arbitrary coefficient arrays. Same spirit as 'CV Array Size' for Size-typed parameters.
CV Scalar
- nparray
◄values(0, 0, 0)►
◄dtypefloat64 (cv2 Scalar default)►
Categoryimage/CV/low-level
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| values | STRING | (0, 0, 0) | Number or tuple literal, e.g. '128' or '(35, 60, 60)'. One element per channel for bounds/means; a bare single number broadcasts to four scalar slots. For polynomial radial-map coefficients use e.g. '(1.3, -0.6, 0.3)'. |
| dtype | COMBO | float64 (cv2 Scalar default) | Element type of the emitted array. float64 is what cv2 expects for Scalar-like arguments. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | 1-D constant array. A bare number N emits (N, N, N, N); tuple literals emit one element per entry. |