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

camera images sometimes out of focus - adding focusMode? #432

Closed
arvindsaraf opened this issue Mar 24, 2024 · 3 comments
Closed

camera images sometimes out of focus - adding focusMode? #432

arvindsaraf opened this issue Mar 24, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@arvindsaraf
Copy link

Issue Description

I'm using human with the computer webcam, and some images are not focused on the main subject. Is the camera is in the continuous focus mode by default?

Will adding a focusMode config to the webcam allow users to set it? Then webcam.ts requestedConstraints can set this focus mode value, ie below:
const requestedConstraints: MediaStreamConstraints = { audio: false, video: { facingMode: this.config.mode === 'front' ? 'user' : 'environment', // Attempt to enable continuous autofocus if supported focusMode: 'continuous', // This line is added to request continuous autofocus, or it can be an input setting param resizeMode: this.config.crop ? 'crop-and-scale' : 'none', }, };

Any suggestions?

@vladmandic
Copy link
Owner

since you have a suggestion, why not test it out yourself first?

@vladmandic vladmandic added the question Further information is requested label Mar 24, 2024
@vladmandic
Copy link
Owner

any updates?

@vladmandic
Copy link
Owner

closing as no follow-up from issue author. if additional notes are added, issue can be reopened.

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

No branches or pull requests

2 participants