Skip to content
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

Add new properties for determining auto exposure and gains #98

Closed
mgrady3 opened this issue May 21, 2014 · 3 comments

Comments

@mgrady3
Copy link

commented May 21, 2014

If I leave certain camera settings at their default or auto setting and then capture an image, is there a way to read out what the current state of those settings are?

When I try something like camera.capture('test.jpg') and then immediately query one of the settings like camera.ISO I see the output as, in this case, 0L
the same goes for camera.shutter_speed
camera.exposure_mode and camera.awb_mode both output u'auto'

That just tells me I am using auto mode but not what specific settings were chosen

Is there a way to query the camera settings that were just used aside from pulling from the exif if you I use jpeg output?

The reason behind this query is that for capturing a sequence in low light level I figured it would be easier to first let the camera choose its auto settings and then afterwards hardcode in those setting to make sure they remain constant thru the entire image sequence rather than making some large loop over all possibel camera settings and then sifting through the images to find the best one

@waveform80

This comment has been minimized.

Copy link
Owner

commented May 21, 2014

Hmm ... I'm not aware of any method of doing this via the MMAL interface (which in turn means there's no method of doing this in picamera), beyond your suggestion of querying the Exif data in a capture. Might be worth asking this question on the camera forum as there's a more general crowd there (including some of the firmware devs themselves) who very likely know a few tricks I don't!

@waveform80 waveform80 added the question label Jun 9, 2014

@waveform80 waveform80 changed the title How to read out 'Auto' settings Add new properties for determining auto exposure and gains Jun 26, 2014

@waveform80 waveform80 added enhancement and removed question labels Jun 26, 2014

@waveform80 waveform80 added this to the 1.6 milestone Jun 26, 2014

@waveform80 waveform80 self-assigned this Jun 26, 2014

@waveform80

This comment has been minimized.

Copy link
Owner

commented Jun 26, 2014

It appears this capability is about to be added to the firmware! I'll keep an eye out for the changes and add some properties to cover them for the next release.

@waveform80

This comment has been minimized.

Copy link
Owner

commented Jun 28, 2014

All relevant details are in 6by9/userland@a715f3d - not quite sure what to do about polling support at the moment, but the properties should be easy enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.