HOW TO Turn Your Mobile Browser into a Barcode Scanner for Web Apps
Smartphone barcode scanners typically require installing a dedicated app. But what if your web app could access the camera and scan codes directly — no app required, just HTML and JavaScript?
I tried Minhaz's nifty HTML5 QR Code & Barcode scanner and I'm bowled over by its simplicity. With hundreds of GitHub stars and forks, it's clear I'm not the only one impressed!
I adapted Minhaz's sample code into a minimalist web page that scans a product barcode and redirects to Open Food Facts to display its nutrition information. Here's the code:
You can also try it out live.
Related:
* Scanapp
* HOW TO scan a barcode with an Android smartphone camera from a web page
Comments
Post a Comment