controlling camera without re-binding (unbind then bindToLifeCycle)?

307 views
Skip to first unread message

Patrick Liao

unread,
Aug 24, 2020, 11:01:08 AM8/24/20
to Android CameraX Discussion Group
I am recently working on exposure compensation and color temperature sliders for users to control. However, since the Extenders requires developers to pass in use case builders, it is impossible to send CaptureRequest to my current use case instance without making a new one, which requires re-binding and would result in lag.

Is there any way to avoid this re-binding process and send CaptureRequest to my current camera? It is kinda crucial for me create a smooth user experience.

Franklin Wu

unread,
Aug 24, 2020, 6:10:26 PM8/24/20
to Android CameraX Discussion Group
That capability isn't currently supported at the moment. However, there is ongoing work to allow for dynamically setting the parameters.

There is an exposure compensation control on CameraControl which allows you to set the EV level dynamically. The change has been merged into master however it is not yet in the latest release. https://android-review.googlesource.com/c/platform/frameworks/support/+/1325716

As for color temperature, there is in progress work to allow for dynamically setting any arbitrary camera2 parameter https://android-review.googlesource.com/c/platform/frameworks/support/+/1310574

Note that both of these are going to be released as experimental features which are subject to changes until the experimental marker is removed and the API is in a beta release.
Reply all
Reply to author
Forward
0 new messages