Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Camera not focusing on certain devices #11

Open
copperstick6 opened this issue May 31, 2017 · 1 comment
Open

Camera not focusing on certain devices #11

copperstick6 opened this issue May 31, 2017 · 1 comment
Assignees

Comments

@copperstick6
Copy link

Thomas brought up a pain point for the app, that the camera isn't focusing on certain devices. Looking to grab more information about this issue from the other organizers/directors.

@copperstick6 copperstick6 self-assigned this May 31, 2017
@copperstick6
Copy link
Author

copperstick6 commented May 31, 2017

https://developers.google.com/android/reference/com/google/android/gms/vision/CameraSource.Builder#setAutoFocusEnabled(boolean)
The docs here provides a pretty good overview of what's happening with the focus. A suggested modification of the code initializing the CameraSource and allowing continuous focus would be as follows:

 mCameraSource = new CameraSource.Builder(this, barcodeDetector)
                .setFacing(CameraSource.CAMERA_FACING_BACK)
                .setRequestedPreviewSize(1600, 1024)
                **.setAutoFocusEnabled(true)**
                .build();

I'm not sure what sort of improvements this would cause with regards to the focus on the camera. I'm getting a new tablet to commence testing next week. Will report back with results.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant