diff options
| author | sm <sm@zing-laptop.com> | 2014-04-02 14:49:22 -0400 |
|---|---|---|
| committer | sm <sm@zing-laptop.com> | 2014-04-02 14:49:22 -0400 |
| commit | 58ea42a7689cd3584f014551adf4d5b297b65599 (patch) | |
| tree | 8628982eb821e512950d7c4df93205dcffe8c789 | |
| parent | 4f7adf0780a5fb71f960c4ad1aee18f236a99c37 (diff) | |
| download | pymba-58ea42a7689cd3584f014551adf4d5b297b65599.tar.gz pymba-58ea42a7689cd3584f014551adf4d5b297b65599.zip | |
fix a couple of typos in the example code
| -rw-r--r-- | README.md | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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 |
