OpenCV imshow_1
Imshow_1 — another copy of the same debug window node
- mat
- unknown
imshow_1 is the second of three identical imshow nodes in this pack. The pack auto-generates a wrapper for every top-level OpenCV function, numbering overloads _0, _1, _2; OpenCV's stub lists imshow three times, the generator made three identical classes, and they all call cv2.imshow(winname, mat). There is no behavioral difference between them. Use imshow_0; this page exists because OpenCV listed the overload, not because there's something special here.
So the real content is the same as imshow_0's: this node pops a GUI window on the machine running ComfyUI and displays the NPARRAY you hand it. winname (STRING) is the window title; mat (NPARRAY) is the image. The output is None - nothing useful comes out the other side.
And the same two cautions apply, so I'll keep them short because they're the whole point:
- It needs a real display on the server. Headless box, Docker container, Windows service, SSH session with no desktop -
cv2.imshowwill fail or crash there. If you can't physically see the server's desktop, this node can't work. - It blocks. The workflow waits on the window; someone has to close it. That makes it a debug tool, not a workflow citizen, and the moment you share a workflow with this in it, the recipient gets a window they didn't ask for.
The legitimate use is debugging an intermediate nparray exactly as OpenCV sees it - BGR, raw, unfiltered - while you're iterating on a pipeline in this pack. For actually showing the user the result, ComfyUI's Preview Image is the right node: it's in-browser, headless-safe, and doesn't block.
Installing. Same as every node here - ComfyUI Manager, search "opencv-comfyui", or:
cd ComfyUI/custom_nodes
git clone https://github.com/geroldmeisinger/opencv-comfyui
pip install opencv-python-contrib
Restart ComfyUI; it's under image/OpenCV.
Bottom line. Identical to imshow_0. Local-machine debugging only, real display required, nothing to route downstream. If that's what you need, any of the three imshow variants works - this one included.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| winname | STRING | — | |
| mat | NPARRAY | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| unknown | None | — |