Camera cannot focus properly
See original GitHub issueDescribe the bug
Camera cannot focus properly on Samsung device on Firefox browser. It’s working fine on Chrome and other devices. For my test, since the size of QR code is small on the object, I set the qrbox small too qrbox=250
.
Expected behavior Camera should properly focus on the QR code.
Screenshots
Smartphone:
- Device: Samsung Galaxy Note5
- OS: Android 7.0
- Browser Firefox
- Version 92.1.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
My Camera Won't Focus: The 8 Most Common Problems
My Camera Won't Focus: The 8 Most Common Problems · 1. The Lens Needs to Be Calibrated · 2. Dirty AF Sensors ·...
Read more >What to do When Your Camera Won't Focus
1 – Remove and remount the lens. This is probably the most common reason that your camera won't focus. The camera and lens...
Read more >5 Reasons Your Camera Won't focus (And What To Do About it)
If there's a poor electrical connection between your lens and your camera, your camera's focusing system won't work. It's unusual, but it could...
Read more >How to do a Camera Focus Test for Autofocus Issues
The easiest way is to take your camera to a service centre and allow an expert to look at it. There are ways...
Read more >15 Tips For When You're Having Trouble Focusing Your Camera
Try using a hand or a lens hood to block out the light, and then lock your focus. You may have to change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed by setting
focusMode: "continuous"
in video constraints@nicocirio do you have maybe an iphone around you test does it work for you on android. I have copied your code, set 3s delay just to be sure. Also I have put alert box before applying constraints just to see if function is executed, however I still cannot get camera to focus properly. Also since I have put zoom to be 2.0, I guess I should notice zoom after video constraints are applied, however nothing happens…
I guess best solution would be just to have zoom applied, that way picture would be bigger and phone would not need to be so closed to the code…