Nodes/comfyui_cv/cv2.connectedComponentsWithAlgorithm
ComfyUI Node

cv2.connectedComponentsWithAlgorithm

Raw wrapper of cv2.connectedComponentsWithAlgorithm(image, connectivity, ltype, ccltype). 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.connectedComponentsWithAlgorithm
  • image
  • int
  • nparray
connectivity0
ltypeCV_32S
ccltypeCCL_DEFAULT
Categoryimage/CV/low-level/cv2 C

Inputs (4)

NameTypeDefaultDescription
imageNPARRAY,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.
connectivityINT0-2147483648–2147483647 - - -
ltypeCOMBOCV_32S - - -
ccltypeCOMBOCCL_DEFAULT - - -

Outputs (2)

NameTypeDescription
intINT
nparrayNPARRAY