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

Use mobile phone camera to scan QR codes #109

Open
cdupont opened this issue Nov 29, 2019 · 3 comments
Open

Use mobile phone camera to scan QR codes #109

cdupont opened this issue Nov 29, 2019 · 3 comments
Assignees

Comments

@cdupont
Copy link
Contributor

cdupont commented Nov 29, 2019

When on mobile phone, it seems possible to use the camera of the phone:
https://stackoverflow.com/questions/8581081/how-to-access-a-mobiles-camera-from-a-web-app

This can be useful for scanning QR codes. This code would be printed on stickers and applied on Waziup devices. The QR code would contain name and sensor details of that device.

@KidusMT
Copy link

KidusMT commented Nov 29, 2019

Have you checked this library called react-html5-camera-photo. https://www.npmjs.com/package/react-html5-camera-photo for taking camera picture. opens camera

@KidusMT
Copy link

KidusMT commented Nov 29, 2019

and this library can decode qrcode called react-qr-reader -> https://www.npmjs.com/package/react-qr-reader . Here is an other blog -> https://hackernoon.com/react-js-qr-code-scanner-with-webworker-in-background-7a8bcefd43d

@cdupont
Copy link
Contributor Author

cdupont commented Dec 8, 2019

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

2 participants