问题描述
我遵循本指南
是否可以通过程序更改视频的亮度/对比度/曝光设置?我正在尝试捕捉一些光线较暗的视频片段,并希望增加曝光率.
Is there a provision to change brightness/contrast/exposure settings of the video programatically? I'm trying to capture some low-lit video footage, and I wish to increase the exposure.
文档此处似乎仅适用于静态图片.
The documentation here seems to apply only for still pictures.
是否可以使用 Camera2 API进行视频捕获?
Any such way for video capture, using Camera2 API?
推荐答案
您需要的所有配置都应位于 CaptureRequest
,例如亮度此处.
All the configuration that you need should be in CaptureRequest
, for example for brightness here.
因此,要按照您遵循的指南进行操作,它位于自述文件中列出的主要步骤的第5部分中,您需要使用创建的CaptureRequest.Builder
此处设置所有您想使用 CaptureRequest.Builder#set(Key<T> key, T value)
和!
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
!
这篇关于在使用Android Camera2的视频拍摄中设置亮度/对比度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!