Skip to content Skip to sidebar Skip to footer

Set Brightness/contrast In Video Capture Using Android Camera2

I made a video capture app with Camera2 API by following this guide, Is there a provision to change brightness/contrast/exposure settings of the video programatically? I'm trying

Solution 1:

All the configuration that you need should be in CaptureRequest, for example for brightness here.

So, to implement it with the guide you follow, it's in the part 5. of the main steps listed in the readme, you need to use the CaptureRequest.Builder created here to set all the configuration that you want, with CaptureRequest.Builder#set(Key<T> key, T value) and the fields from CaptureRequest !

Post a Comment for "Set Brightness/contrast In Video Capture Using Android Camera2"