mabl / PyPylon

An experimental python wrapper around the Basler Pylon 5 library
BSD 3-Clause "New" or "Revised" License
53 stars 34 forks source link

Key does not exist cam.properties #36

Open madhusudangr opened 7 years ago

madhusudangr commented 7 years ago

Key not found error in when trying to set cam.properties . The others seems to work fine, does anyone have any idea about this ?

>>> cam.properties['ExposureTime']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cython\factory.pyx", line 87, in pypylon.cython.factory._PropertyMap.__getitem__
KeyError: 'Key does not exist'
>>> cam.properties['DeviceLinkThroughputLimitMode']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cython\factory.pyx", line 87, in pypylon.cython.factory._PropertyMap.__getitem__
KeyError: 'Key does not exist'

The above two throws an error, while this works

>>> import pypylon
>>> pypylon.pylon_version.version
'5.0.10.build_10613'
>>> available_cameras =pypylon.factory.find_devices()
>>> available_cameras
[<DeviceInfo Basler acA1300-60gc (xxxxxxx)>]
>>> cam = pypylon.factory.create_device(available_cameras[0])
>>> cam.opened
False
>>> cam.open()
>>> cam.grab_images(1)
<generator object at 0x00000xxxxxxxxxx>

Does anyone have a clue what is happening ?