Join GitHub today
Exposure mode problem #171
When "exposure_mode" is set to 'off', the output is black. pi firmware and python libraries are up to date.
Will be further investigating the issue today. I'm suspecting that the problem may be in my code.
Figured it out, setting the exposure_mode to 'off' just after setting shutter_speed results in a black image but doing;
camera.shutter_speed = 30000
camera.exposure_mode = 'off'
solves the problem. This should be further investigated.
While playing around with #182 another cause of this seems to be setting
Looks like #171 and #182 are basically the same thing: the camera's analog gain starts off (just after init) as a really low value (1) which causes all frames to return black (there's probably some good reason for doing this, but I don't know enough about the firmware to know what). If you set
I'll update the docs and recipes to include information about explicitly waiting for analog gain to reach a sensible level before setting