pootle
Posts: 376
Joined: Wed Sep 04, 2013 10:20 am
Location: Staffordshire
Contact: Website

setting analog / digital gain in (python) picamera

Wed May 27, 2020 8:28 am

I see in the HQ camera thread that raspistill allows analog gain to be set directly using -ag.

But with a picamera.PiCamera object the analog_gain attribute cannot be written.

Is there a way to set analog gain (and digital gain) via python / picamera - typically for when exposure mode is off.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8739
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: setting analog / digital gain in (python) picamera

Wed May 27, 2020 9:21 am

https://github.com/waveform80/picamera/pull/463 refers to it being merged as part of https://github.com/waveform80/picamera/pull/470, although I can't see the exact commit at present.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Camera board”