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

Is it possible to autofocus camera ? #16

Open
ghost opened this issue Mar 1, 2019 · 3 comments
Open

Is it possible to autofocus camera ? #16

ghost opened this issue Mar 1, 2019 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented Mar 1, 2019

I have a good quality camera in my phone but using this API video is showing blur on canvas. Have any idea how to improve this ?

@Sami-Radi Sami-Radi self-assigned this Mar 21, 2019
@Sami-Radi
Copy link
Collaborator

Autofocus is enable on Android @see private String getOptimalFocusMode(Camera.Parameters params) method in CanvasCamera.java.

However it's not explicitly set on iOS. I will look into it.

Best Regards,

@AareFabrik
Copy link

Any progress on this? The image is quite out of focus on my iPhone, and is not autofocusing.

@seme1
Copy link

seme1 commented Oct 14, 2019

Autofocus is implemented in this plugin:
https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview
Perhaps if one is good enough to copy the IOS/Android implementation from that plugin into this one ?
Without this, the plugin is not very practical to use.

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

No branches or pull requests

3 participants