OpenCV destroyAllWindows_0
The Node That Closes Windows That Were Never Open
- unknown
OpenCV destroyAllWindows_0 calls cv2.destroyAllWindows(), which closes every window OpenCV has opened. In ComfyUI, that means it closes... none. ComfyUI runs as a server; it doesn't open native OpenCV windows, there's nothing to destroy, and this node returns None with an output type the pack itself labels unknown. It's the auto-generated pack's most honest work: a faithful wrapper around a function that does nothing useful in this context.
It exists because geroldmeisinger/opencv-comfyui mechanically wraps every top-level cv2 function - about 635 of them - and destroyAllWindows is in the list. The author's own roadmap flags functions that "don't make sense in ComfyUI (like return type None)" for blacklisting; this node is exactly that case, shipped anyway because codegen doesn't have taste.
When you'd ever use it
Essentially never. The only scenario where it's not pure theater: if you're running ComfyUI locally on a desktop where some other part of your pipeline (a custom node or a Python script you're calling alongside) opened OpenCV windows, this could tidy them up mid-workflow. That's a stretch. The realistic take: this is a curiosity that demonstrates the pack's design - every function gets a node, whether you need it or not.
Inputs and outputs
- No inputs.
unknown(None, output) - aNone-typed output that won't connect to anything meaningful. The brief calls itunknown, which is apt.
Install
ComfyUI Manager (search opencv-comfyui) or:
cd ComfyUI/custom_nodes
git clone https://github.com/geroldmeisinger/opencv-comfyui
pip install opencv-contrib-python
Restart ComfyUI. No models. The package name to actually install is opencv-contrib-python (the README's opencv-python-contrib is wrong); conflicting OpenCV installs announce themselves with Cannot import name 'guidedFilter' from 'cv2.ximgproc', fixed as documented in the LayerStyle issue the README links.
The honest bottom line
If you loaded this page hoping for a solution, here it is: there's nothing to solve, because there are no windows. Treat destroyAllWindows_0 the way you'd treat a reset button on a device with no settings - harmless, occasionally satisfying to click, never required. The pack's real value is in nodes like cvtColor, dct, and the conversion pair Image2Nparray/Nparrays2Image; this one is just along for the ride, auto-generated and proud.
Inputs (0)
No inputs
Outputs (1)
| Name | Type | Description |
|---|---|---|
| unknown | None | — |