aboutsummaryrefslogtreecommitdiff
path: root/examples/camera
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-02-25 10:52:24 +1100
committermorefigs <morefigs@gmail.com>2019-02-25 10:52:24 +1100
commit587bcad326e62277834471e74e5cefd62bc73400 (patch)
tree7abfc3d55b56014f6fefd0a4aa96bd6c43f52cac /examples/camera
parent4efb63b1285b831f2489b7a41da3eb22ef31cd5d (diff)
downloadpymba-587bcad326e62277834471e74e5cefd62bc73400.tar.gz
pymba-587bcad326e62277834471e74e5cefd62bc73400.zip
note on displaying cv2 windows from a thread
Diffstat (limited to 'examples/camera')
-rw-r--r--examples/camera/opencv_acquire_streaming_images.py1
1 files changed, 1 insertions, 0 deletions
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)