fix cv2 window

This commit is contained in:
iperov 2021-11-18 18:39:28 +04:00
parent e4776c4568
commit c0efaa1900

View file

@ -138,7 +138,8 @@ class StreamOutputWorker(BackendWorker):
def hide_window(self):
state, cs = self.get_state(), self.get_control_sheet()
if self._wnd_showing:
cv2.destroyWindow(self._wnd_name)
cv2.destroyAllWindows()
#cv2.destroyWindow(self._wnd_name) # requires check if window exists
self._wnd_showing = False
def on_cs_show_hide_window_signal(self,):