Nodes/opencv-comfyui/OpenCV imshow_1
ComfyUI Node

OpenCV imshow_1

Imshow_1 — another copy of the same debug window node

By geroldmeisinger·Created about a year ago·Updated about a year ago· 35
OpenCV imshow_1
  • mat
  • unknown
winname

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:

  1. It needs a real display on the server. Headless box, Docker container, Windows service, SSH session with no desktop - cv2.imshow will fail or crash there. If you can't physically see the server's desktop, this node can't work.
  2. 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.

Categoryimage/OpenCV

Inputs (2)

NameTypeDefaultDescription
winnameSTRING
matNPARRAY

Outputs (1)

NameTypeDescription
unknownNone