From 9d457f6b923ab783b8f36a66a16d8965f3469419 Mon Sep 17 00:00:00 2001 From: morefigs Date: Sat, 9 Feb 2019 14:51:07 +1100 Subject: rename new frame function --- examples/camera/opencv_capture_image.py | 2 +- examples/camera/opencv_capture_image_with_callback.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/camera/opencv_capture_image.py b/examples/camera/opencv_capture_image.py index e8bf3d5..04b7853 100644 --- a/examples/camera/opencv_capture_image.py +++ b/examples/camera/opencv_capture_image.py @@ -10,7 +10,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() 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) -- cgit v1.2.3 From 4273a399f5c1aa6b96079d06083aceaa27acc42c Mon Sep 17 00:00:00 2001 From: morefigs Date: Sat, 9 Feb 2019 15:00:15 +1100 Subject: stop acquisition after frame captured --- examples/camera/opencv_capture_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/camera/opencv_capture_image.py b/examples/camera/opencv_capture_image.py index 04b7853..cf5305f 100644 --- a/examples/camera/opencv_capture_image.py +++ b/examples/camera/opencv_capture_image.py @@ -15,8 +15,8 @@ if __name__ == '__main__': 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() -- cgit v1.2.3