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 is not writable #39

Open noe-tiger opened 6 years ago

noe-tiger commented 6 years ago

Hi, i am trying to change some of the camera parameters like the 'DecimationVertical' Here is my code :

cam = pypylon.factory.create_device(device_name) cam.open() cam.properties['PixelFormat'] = 'Mono8' cam.properties['DecimationVertical'] = 2 cam.close()

It gave me this error :

File "mypath/test.py", line 4 cam.properties['DecimationVertical'] = 2 File "cython\factory.pyx", line 123, in pypylon.cython.factory._PropertyMap.setitem OSError: Key is not writable

Does anyone have an idea for doing this ?