Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview out of focus, though pictures usually end up in focus #15

Open
skypanther opened this issue Nov 4, 2016 · 2 comments
Open

Preview out of focus, though pictures usually end up in focus #15

skypanther opened this issue Nov 4, 2016 · 2 comments

Comments

@skypanther
Copy link

I realize that this module is no longer supported. But, I'm hoping you or someone watching can help anyway.

The preview is always out of focus. Usually the photos end up being in focus (After calling snapPicture() I can see the image slide into focus right before the picture is actually captured).

But, it makes for bad UX for the user who thinks their photo will be out of focus. Is there a way to get the preview to autofocus?

I have added the permissions keys to my tiapp.xml:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>

And my test phone supports focus, as evidenced by the logs:

[INFO]  CameraViewProxy: Setting Preview Display
[INFO]  CameraViewProxy: Trying to match resolution of 1920*1080 for picture
[INFO]  CameraViewProxy: pictureSize width:1920 height:1080
[INFO]  CameraViewProxy: optimalPreviewSize width:1920 height:1080
[INFO]  CameraViewProxy: Auto Focus is Supported
[INFO]  CameraViewProxy: Flash is supported

Also, I can't tap on the screen to focus at a specific spot in the scene (like I can do with the native camera). Any suggestions?

@joshualambert
Copy link

I have the same need as above for tap-to-focus. Did anybody figure out how to do this?

@m1ga
Copy link

m1ga commented Oct 12, 2018

I know its a very old issue, just so it can be closed: #23
😄

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

No branches or pull requests

3 participants