aboutsummaryrefslogtreecommitdiff
path: root/examples/camera/opencv_capture_image_with_callback.py
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-02-09 15:02:34 +1100
committermorefigs <morefigs@gmail.com>2019-02-09 15:02:34 +1100
commite9a094cadc47d8b4ba3ffbc80e64f17decdbc32b (patch)
tree64cc668b5792f701758f72bba91aeb890c6617be /examples/camera/opencv_capture_image_with_callback.py
parent95ce9c6e730b795d6d1bf83bb2fa56602fc985f9 (diff)
parent0adf83d72c081f02cb21510035c7dda8ab07f796 (diff)
downloadpymba-e9a094cadc47d8b4ba3ffbc80e64f17decdbc32b.tar.gz
pymba-e9a094cadc47d8b4ba3ffbc80e64f17decdbc32b.zip
Merge branch 'master' of github.com:morefigs/pymba
Diffstat (limited to 'examples/camera/opencv_capture_image_with_callback.py')
-rw-r--r--examples/camera/opencv_capture_image_with_callback.py2
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 4d5fa28..b7bc7ff 100644
--- a/examples/camera/opencv_capture_image_with_callback.py
+++ b/examples/camera/opencv_capture_image_with_callback.py
@@ -24,7 +24,7 @@ if __name__ == '__main__':
# setup camera and frame and capture a single image
camera.AcquisitionMode = 'SingleFrame'
- frame = camera.create_frame()
+ frame = camera.new_frame()
frame.announce()
camera.start_capture()
frame.queue_for_capture(on_callback)