vue-qrcode-reader icon indicating copy to clipboard operation
vue-qrcode-reader copied to clipboard

Focus

Open michalexvr opened this issue 5 years ago • 8 comments

We have some way to use focus?, our QR codes are really small and the camera does not taking good because the image is blurred. How can we fix it?

michalexvr avatar Jun 07 '19 03:06 michalexvr

I was just browsing the MediaStream API specification and it looks like you can define what they call a Point of interest.

If I understand this correctly, you pass a set of coordinates (e.g. the location where the user tapped on the screen) and the camera is then auto-focused at this point.

Sounds like exactly what we need right? I'll try to implement this ASAP.

gruhn avatar Jun 07 '19 09:06 gruhn

Yes! Is it!!

Thanks a lot!!!

michalexvr avatar Jun 07 '19 12:06 michalexvr

Hi,

is there any progress on that feature? Does it work as described in the API specs?

Would love to see this feature in action as well.

alqu avatar Oct 20 '19 15:10 alqu

@alqu turns out not a single browser currently supports this API. It's not even mentioned on MDN or Caniuse. The spec is pretty much the only source currently. Sorry, we have to wait until browsers start implementing it.

gruhn avatar Oct 21 '19 17:10 gruhn

I solved it for a while using an autofocus camera powered by hardware.

michalexvr avatar Oct 22 '19 02:10 michalexvr

@michalexvr what exactly do mean? Can you elaborate a little bit more?

gruhn avatar Oct 22 '19 05:10 gruhn

@alqu turns out not a single browser currently supports this API. It's not even mentioned on MDN or Caniuse. The spec is pretty much the only source currently. Sorry, we have to wait until browsers start implementing it.

OK, you are right. So I use this as it is... Thanks! 👍

alqu avatar Oct 22 '19 08:10 alqu

what exactly do mean? Can you elaborate a little bit more?

This camera (https://www.logitech.com/es-es/product/b525-webcam) supports autofocus by hardware i used this for what i needed.

michalexvr avatar Oct 22 '19 12:10 michalexvr

Hi. I just faced same problem. What do you think, can it be solved by changing focus mode or by adjusting the focus manually, for example, with external slider, of course, for those browsers that support it?

a2exfr avatar Mar 03 '23 11:03 a2exfr

This issue has been marked as stale. If there is no further activity it will be closed.

github-actions[bot] avatar Aug 11 '23 00:08 github-actions[bot]