ComfyUI Node
Image → CV Array
Converts a ComfyUI IMAGE to a raw OpenCV ndarray (NPARRAY) for use with the low-level cv2.* nodes.
Image → CV Array
- image
- nparray
◄color_formatBGR (OpenCV default)►
◄dtypeuint8 (0-255)►
◄batch_index0►
Categoryimage/CV/low-level
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | IMAGE to convert. Only one frame is taken (see batch_index) since raw cv2 nodes work on single images. | |
| color_format | COMBO | BGR (OpenCV default) | Most cv2 functions expect BGR; functions like Canny or threshold require a single-channel GRAY image. |
| dtype | COMBO | uint8 (0-255) | Most cv2 functions expect uint8. |
| batch_index | INT | 00–4095 | Which image of the batch to convert (raw cv2 functions operate on single images). Clamped to the batch size. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |