在使用Android Camera2的视频拍摄中设置亮度/对比度 [英] Set brightness/contrast in video capture using Android Camera2

查看:1014
本文介绍了在使用Android Camera2的视频拍摄中设置亮度/对比度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循指南

是否可以通过程序更改视频的亮度/对比度/曝光设置?我正在尝试捕捉一些光线较暗的视频片段,并希望增加曝光率.

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?

推荐答案

您需要的所有配置都应位于此处.

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

因此,要按照您遵循的指南进行操作,它位于自述文件中列出的主要步骤的第5部分中,您需要使用创建的CaptureRequest.Builder CaptureRequest

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的视频拍摄中设置亮度/对比度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆