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.
cv2.connectedComponentsWithAlgorithm
- image
- int
- nparray
◄connectivity0►
◄ltypeCV_32S►
◄ccltypeCCL_DEFAULT►
Categoryimage/CV/low-level/cv2 C
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | NPARRAY,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. | |
| connectivity | INT | 0-2147483648–2147483647 | - - - |
| ltype | COMBO | CV_32S | - - - |
| ccltype | COMBO | CCL_DEFAULT | - - - |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| int | INT | — |
| nparray | NPARRAY | — |