-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not set awb_gains #318
Comments
The value of awb_gains used by print seems to take a while to settle. Inserting repeat print and capture statements will reveal this unexpected behaviour. However, looking at repeat captures, the used value of awb_gains does seem to be very close to what is input. |
Reading awb_gains returns the values used on the last completed image. You've set new values and immediately requested the settings before a new frame has been generated, therefore you're reading back stale data. Either set awb_gains before you start the camera streaming, or delay by at least one frame time, and you should get the value you set (rounded to the nearest 1/256th). |
This looks pretty comprehensively answered to me, so I'll close it (feel free to re-open if you've got anything further to add though!) |
I have a similar issue. I created the following script based on the picamera documentation `from time import sleep camera = PiCamera(resolution=(1280, 720), framerate=30) But whatever I put as |
Hi everyone,
I am trying to hard code a certain white balance for a time lapse camera, however, it seems like setting
camera.awb_gains = Fraction(497, 256), Fraction(177, 128)
has no effect. The code below outputs a different awb_gains each time.What a I doing wrong?
The text was updated successfully, but these errors were encountered: