waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.57k stars 355 forks source link

Retrieval of image effect parameters fails #159

Open waveform80 opened 10 years ago

waveform80 commented 10 years ago

Attempting to retrieve image effect parameters fails on firmware 707 (and several prior firmwares), even after setting valid parameters for an effect. Not a huge issue; the current picamera code simply stores the last set of parameters and returns these but it's probably worth reporting upstream (need to come up with a small C test case).

waveform80 commented 8 years ago

Minimal Python test case using mmalobj (requires 1.11+):

>>> from picamera import PiCamera, mmal
>>> camera = PiCamera()
>>> camera.start_preview(alpha=192)
>>> camera.image_effect = 'colorbalance'
>>> camera._camera.control.params[mmal.MMAL_PARAMETER_IMAGE_EFFECT_PARAMETERS]