aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-02-09 14:51:07 +1100
committermorefigs <morefigs@gmail.com>2019-02-09 14:51:07 +1100
commit9d457f6b923ab783b8f36a66a16d8965f3469419 (patch)
treee9cb32b85b1093781d6712837cb7583b8e853d34
parentb1fb6259bec08f4613a87e795586fc3c34b1db9a (diff)
downloadpymba-9d457f6b923ab783b8f36a66a16d8965f3469419.tar.gz
pymba-9d457f6b923ab783b8f36a66a16d8965f3469419.zip
rename new frame function
-rw-r--r--examples/camera/opencv_capture_image.py2
-rw-r--r--examples/camera/opencv_capture_image_with_callback.py2
-rw-r--r--pymba/camera.py2
3 files changed, 3 insertions, 3 deletions
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)
diff --git a/pymba/camera.py b/pymba/camera.py
index 3bdc16b..23ecd13 100644
--- a/pymba/camera.py
+++ b/pymba/camera.py
@@ -154,7 +154,7 @@ class Camera(VimbaObject):
if error:
raise VimbaException(error)
- def create_frame(self) -> Frame:
+ def new_frame(self) -> Frame:
"""
Creates and returns a new frame object. Multiple frames per camera can therefore be returned.
"""