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

No "sport" exposure mode #38

Closed
felixhesshaw opened this issue Mar 16, 2022 · 3 comments
Closed

No "sport" exposure mode #38

felixhesshaw opened this issue Mar 16, 2022 · 3 comments

Comments

@felixhesshaw
Copy link

Hello,

thanks for your great work! I want to use the pi cam hq with the shortest shutter time possible.
Is there any way to activate the sports exposure mode with picamera2?
This is from the libcamera -help output:
'--exposure arg (=normal) Set the exposure mode (normal, sport)'

Couldn't find this option in picamera2 but maybe I missed something.

Thanks in advance
Felix

@davidplowman
Copy link
Collaborator

In Picamera2 you needs to set the "AeExposureMode" control. You can do this in the start method. For "sport" mode you want what libcamera calls the "short" exposure mode. Unfortunately at the moment this is referred to by its numerical value, which is obviously something that needs to be improved. In this case the value is 1 (see here). So you'd use:

picam2.start({"AeExposureMode": 1})

If you want more precise control of the the exposure mode, you could edit the camer's JSON tuning file.

@davidplowman
Copy link
Collaborator

I've pushed an update to the picamera2 branch of the raspberrypi/libcamera repo. If you rebuild this you should be able to use (for example) libcamera.AeExposureMode.Short.

@davidplowman
Copy link
Collaborator

The fix was confirmed in another similar report so I'll close this one now. Please feel free to file a new report if you're still having problems. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants