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

Enable/disable Auto exposure #1641

Open
legosaro opened this issue Nov 14, 2024 · 3 comments
Open

Enable/disable Auto exposure #1641

legosaro opened this issue Nov 14, 2024 · 3 comments

Comments

@legosaro
Copy link

Is your feature request related to a problem? Please describe.
I need a method to ensure that the camera automatically adjusts its exposure settings for optimal image brightness in varying lighting conditions.

Describe the solution you'd like
Add the method enableAutoExposure in the Camera2ApiManager class with the following code:

builderInputSurface.set(
CaptureRequest.CONTROL_AE_MODE,
CaptureRequest.CONTROL_AE_MODE_ON
);

@pedroSG94
Copy link
Owner

Added here:
9222c21

@legosaro
Copy link
Author

Hi Pedro,
thank you for the update!
"I have a question for you, is this check correct:
val modes = characteristics.secureGet(CameraCharacteristics.CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES) ?: return false

I found this:
val modes = characteristics.secureGet(CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES)

Another question, I tried using the two methods (enable/disable) but I didn't see any difference, why is that?

Thanks in advance

@pedroSG94
Copy link
Owner

pedroSG94 commented Nov 20, 2024

I fixed the check error.
About the question if I can see any different. No, I'm not sure the reason but the code should be correct now

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