From d533319076a1cf1ccf9bec3c77b66196e9c10882 Mon Sep 17 00:00:00 2001 From: iperov Date: Tue, 26 Mar 2019 16:08:17 +0400 Subject: [PATCH] 1 --- interact/interact.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/interact/interact.py b/interact/interact.py index 078b3de..6255639 100644 --- a/interact/interact.py +++ b/interact/interact.py @@ -303,21 +303,24 @@ class InteractColab(InteractBase): return True def on_destroy_all_windows(self): - clear_output() + pass + #clear_output() def on_create_window (self, wnd_name): - clear_output() + pass + #clear_output() def on_show_image (self, wnd_name, img): - # cv2 stores colors as BGR; convert to RGB - if img.ndim == 3: - if img.shape[2] == 4: - img = cv2.cvtColor(img, cv2.COLOR_BGRA2RGBA) - else: - img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) - img = PIL.Image.fromarray(img) - plt.imshow(img) - plt.show() + pass + # # cv2 stores colors as BGR; convert to RGB + # if img.ndim == 3: + # if img.shape[2] == 4: + # img = cv2.cvtColor(img, cv2.COLOR_BGRA2RGBA) + # else: + # img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) + # img = PIL.Image.fromarray(img) + # plt.imshow(img) + # plt.show() def on_capture_mouse (self, wnd_name): pass