Nodes/comfyui_cv/cv2.checkRange
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.checkRange
  • a
  • ok
  • pos
quiettrue
minVal
maxVal
Categoryimage/CV/low-level/cv2 C

Inputs (4)

NameTypeDefaultDescription
aNPARRAY,IMAGE,MASKinput 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.
quietoptBOOLEANtruea 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).
minValoptFLOATinclusive lower boundary of valid values range. Preset to the OpenCV default (-1.7976931348623157e+308).
maxValoptFLOATexclusive upper boundary of valid values range. Preset to the OpenCV default (1.7976931348623157e+308).

Outputs (2)

NameTypeDescription
okBOOLEAN
posCV_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.