Android(Mobile) vision camera brightness is very low

£可爱£侵袭症+ 提交于 2019-12-08 17:34:21

问题


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

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 .

Pictures : Camera picture , App Camera view picture


回答1:


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();


来源:https://stackoverflow.com/questions/38147675/androidmobile-vision-camera-brightness-is-very-low

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!