Android(移动)视觉相机亮度非常低 [英] Android(Mobile) vision camera brightness is very low
问题描述
我已将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屋!