diff options
| author | morefigs <morefigs@gmail.com> | 2019-02-25 10:52:24 +1100 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2019-02-25 10:52:24 +1100 |
| commit | 587bcad326e62277834471e74e5cefd62bc73400 (patch) | |
| tree | 7abfc3d55b56014f6fefd0a4aa96bd6c43f52cac /examples/camera | |
| parent | 4efb63b1285b831f2489b7a41da3eb22ef31cd5d (diff) | |
| download | pymba-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.py | 1 |
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) |
