OpenCV imshow_2
Imshow_2 — the third identical debug window, for completeness
- mat
- unknown
Third verse, same as the first: imshow_2 is another byte-identical copy of cv2.imshow(winname, mat) wrapped as a node. This pack turns every top-level OpenCV function into a ComfyUI node by parsing the cv2 type stubs, and imshow shows up three times in the stub, so you get imshow_0, imshow_1, and imshow_2 - all calling the same function with the same arguments. There is nothing different about imshow_2. If you need an imshow, use imshow_0. If you picked imshow_2 because it sounded official, you can relax: it works identically.
What the function does: it opens a GUI window on the machine running ComfyUI and draws the mat (NPARRAY) you give it, under the title winname (STRING). Output is None - there's nothing to wire anywhere. It's a local debug view, not a way to show images to a user.
The cautions, in one breath: it needs a real display on the server (headless/Docker/service setups will fail or crash - cv2.imshow has no headless fallback), it blocks the workflow until the window is dismissed, and it's the wrong tool for showing results (that's what Preview Image is for, which renders in your browser and works fine on a headless box). Where it earns its keep: while you're debugging a pipeline in this pack and want to inspect a raw intermediate nparray the way OpenCV actually renders it - BGR, un-normalized - on the machine in front of you.
Installing. Standard for this pack. 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 appears under image/OpenCV.
Bottom line. This is the third identical copy of a debug-only node. It works, it's identical to the other two, and it's almost never what you want in a finished workflow. Use Preview Image for previews; use any imshow variant for poking at an intermediate array on a machine with a desktop - and delete it before you share the graph.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| winname | STRING | — | |
| mat | NPARRAY | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| unknown | None | — |