aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsm <sm@zing-laptop.com>2014-04-02 14:49:22 -0400
committersm <sm@zing-laptop.com>2014-04-02 14:49:22 -0400
commit58ea42a7689cd3584f014551adf4d5b297b65599 (patch)
tree8628982eb821e512950d7c4df93205dcffe8c789
parent4f7adf0780a5fb71f960c4ad1aee18f236a99c37 (diff)
downloadpymba-58ea42a7689cd3584f014551adf4d5b297b65599.tar.gz
pymba-58ea42a7689cd3584f014551adf4d5b297b65599.zip
fix a couple of typos in the example code
-rw-r--r--README.md11
1 files changed, 3 insertions, 8 deletions
diff --git a/README.md b/README.md
index a7e25e8..a6bef6d 100644
--- a/README.md
+++ b/README.md
@@ -52,11 +52,6 @@ Discover, open, manipulate, and capture frames from a camera.
for name in cameraFeatureNames:
print 'Camera feature:', name
- # read info of a camera feature
- featureInfo = camera0.getFeatureInfo('AcquisitionMode')
- for field in featInfo.getFieldNames():
- print field, '--', getattr(featInfo, field)
-
# get the value of a feature
print camera0.AcquisitionMode
@@ -82,10 +77,10 @@ Discover, open, manipulate, and capture frames from a camera.
# ...or use NumPy for fast image display (for use with OpenCV, etc)
import numpy as np
- moreUsefulImgData = np.ndarray(buffer = camera0.frame0.getBufferByteData(),
+ moreUsefulImgData = np.ndarray(buffer = frame0.getBufferByteData(),
dtype = np.uint8,
- shape = (camera0.frame0.height,
- camera0.frame0.width,
+ shape = (frame0.height,
+ frame0.width,
1))
# clean up after capture