aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/camera/opencv_capture_image.py4
-rw-r--r--examples/camera/opencv_capture_image_with_callback.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/camera/opencv_capture_image.py b/examples/camera/opencv_capture_image.py
index e8bf3d5..cf5305f 100644
--- a/examples/camera/opencv_capture_image.py
+++ b/examples/camera/opencv_capture_image.py
@@ -10,13 +10,13 @@ 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()
camera.run_feature_command('AcquisitionStart')
- camera.run_feature_command('AcquisitionStop')
frame.wait_for_capture()
+ camera.run_feature_command('AcquisitionStop')
# get the image data as a numpy array
image = frame.image_numpy_array()
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)