From 587bcad326e62277834471e74e5cefd62bc73400 Mon Sep 17 00:00:00 2001 From: morefigs Date: Mon, 25 Feb 2019 10:52:24 +1100 Subject: note on displaying cv2 windows from a thread --- examples/camera/opencv_acquire_streaming_images.py | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/camera/opencv_acquire_streaming_images.py b/examples/camera/opencv_acquire_streaming_images.py index a3efb6b..e813672 100644 --- a/examples/camera/opencv_acquire_streaming_images.py +++ b/examples/camera/opencv_acquire_streaming_images.py @@ -14,6 +14,7 @@ def process_frame(frame: Frame): image = frame.buffer_data_numpy() # display image + # note that this function is called in a thread, and therefore cv2 windows must be destroyed by the same thread cv2.imshow('Image', image) cv2.waitKey(1) -- cgit v1.2.3