ComfyUI Node
cv2.checkRange
Raw wrapper of cv2.checkRange(a, quiet?, minVal?, maxVal?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.checkRange
- a
- ok
- pos
◄quiettrue►
◄minVal—►
◄maxVal—►
Categoryimage/CV/low-level/cv2 C
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| a | NPARRAY,IMAGE,MASK | input array. 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. | |
| quietopt | BOOLEAN | true | a flag, indicating whether the functions quietly return false when the array elements are out of range or they throw an exception. Preset to the OpenCV default (True). |
| minValopt | FLOAT | inclusive lower boundary of valid values range. Preset to the OpenCV default (-1.7976931348623157e+308). | |
| maxValopt | FLOAT | exclusive upper boundary of valid values range. Preset to the OpenCV default (1.7976931348623157e+308). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| ok | BOOLEAN | — |
| pos | CV_TUPLE | - - - Pixel coordinates (x, y) as ONE composite value - wire it straight into any cv2 point input (center, seedPoint, pt1/pt2) or into 'CV Split Tuple' for the separate numbers. |