Android(移动)视觉相机亮度非常低 [英] Android(Mobile) vision camera brightness is very low

查看:519
本文介绍了Android(移动)视觉相机亮度非常低的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Google愿景集成到我的项目中,如下所示:
http://code.tutsplus.com/tutorials/reading-qr-codes-using-the-mobile-vision-api--cms-24680

I have integrated google vision in my project as shown in below post: http://code.tutsplus.com/tutorials/reading-qr-codes-using-the-mobile-vision-api--cms-24680

除了相机视图的亮度外,其他所有内容都不错。与我的实际android摄像头应用程序相比,此处的摄像头视图非常暗。

Everything looks fine except the camera view brightness . The camera view here is very dark when comparing with my actual android camera app.

请让我知道我是否可以增加摄像头的亮度并打开任何弱光设置。谢谢。

Please let me know if i can increase the brightness of the camera and turn on any low light settings. Thanks .

图片:
相机图片

应用程序相机图片

推荐答案

我遇到了同样的问题。在构建CameraSource时添加 .setRequestedFps(15.0f)解决了我的问题。
好​​像fps计数与亮度有关。
我的构建器如下所示:

I had the same problem. Adding .setRequestedFps(15.0f) while Building CameraSource resolved my problem. Seems like the fps count has something to do with brightness. My builder looks like that:

CameraSource cameraSource = new CameraSource.Builder(getActivity(), barcodeDetector)
                .setFacing(CameraSource.CAMERA_FACING_BACK)
                .setRequestedPreviewSize(1600, 1024)
                .setRequestedFps(15.0f)
                .setAutoFocusEnabled(true)
                .build();

这篇关于Android(移动)视觉相机亮度非常低的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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