cv3.io.destroy_window

cv3.io.destroy_window(winname: str)[source]

Destroy a specific window.

Parameters:

winname (str) – Name of the window to destroy.

Note

This is a wrapper around cv2.destroyWindow().

Example

>>> import cv3
>>> # Create and display an image
>>> import numpy as np
>>> img = np.zeros((100, 100, 3), dtype=np.uint8)
>>> cv3.imshow('My Window', img)
>>> # Destroy the specific window
>>> cv3.destroy_window('My Window')