diff options
| author | morefigs <morefigs@gmail.com> | 2019-02-09 15:57:44 +1100 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2019-02-09 15:57:44 +1100 |
| commit | ec95851f68d24e4201d4698a2657d90a174c05fa (patch) | |
| tree | a4261d030aa8383b93b9c6ba7fafa305e85c5c15 /examples/camera/opencv_capture_image_with_callback.py | |
| parent | e9a094cadc47d8b4ba3ffbc80e64f17decdbc32b (diff) | |
| download | pymba-ec95851f68d24e4201d4698a2657d90a174c05fa.tar.gz pymba-ec95851f68d24e4201d4698a2657d90a174c05fa.zip | |
refactor to clean up buffer access functions
Diffstat (limited to 'examples/camera/opencv_capture_image_with_callback.py')
| -rw-r--r-- | examples/camera/opencv_capture_image_with_callback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/camera/opencv_capture_image_with_callback.py b/examples/camera/opencv_capture_image_with_callback.py index b7bc7ff..67cabdf 100644 --- a/examples/camera/opencv_capture_image_with_callback.py +++ b/examples/camera/opencv_capture_image_with_callback.py @@ -8,7 +8,7 @@ def on_callback(completed_frame: Frame): print('Callback called!') # get the image data as a numpy array - image = completed_frame.image_numpy_array() + image = completed_frame.buffer_data_numpy() # display image cv2.imshow(camera.camera_id, image) |
